开发者

popUpButton is setEnabled:YES but doesn't allow click

开发者 https://www.devze.com 2022-12-23 17:39 出处:网络
my popUpButton is in a window with a group of popUpButtons.If I try to click the 2nd of 4 vertically aligned buttons then the popdown menu will not appear.If I select the 3开发者_JS百科rd or 4th then

my popUpButton is in a window with a group of popUpButtons. If I try to click the 2nd of 4 vertically aligned buttons then the popdown menu will not appear. If I select the 3开发者_JS百科rd or 4th then the 2nd will now be selectable.

throughout my code the setEnabled on that popUpButton is :YES.

ideas on where to look in my controller?

This is a Objective C/Cocoa Question.


the solution was in the -validateMenuItem code... I wasnt checking for a return value of null somewhere that method and it was logically returning false.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号