Re: Disabled PopUpButton With Action
Re: Disabled PopUpButton With Action
- Subject: Re: Disabled PopUpButton With Action
- From: "Jason Barker" <email@hidden>
- Date: Fri, 21 Dec 2007 22:56:53 -0700
That did the trick! I had to add each menu item to -validateMenuItem: and
return YES.
Thanks for your help!
Jason
On Dec 21, 2007 10:10 PM, Jerry Krinock <email@hidden> wrote:
>
> On 2007 Dec, 21, at 16:47, Jason Barker wrote:
>
> > I have placed a NSPopUpButton on a window and connected it to an
> > action in
> > the instance of my AppController in Interface Builder (v 2.5.3 in
> > Tiger).
> > When I run my application, the popup menu will display the list of
> > items but
> > every one of them is disabled. There has got to be something simple
> > that I
> > am missing. Can someone tell me what I am doing wrong?
>
> I vaguely remember having a problem like this once, and possibly the
> cause was an object implementing -validateMenuItem: and returning NO
> for unknown items.
>
> But I can't find any such comments in my code, so I'm not sure. Read
> this document:
>
> Guides > Cocoa > User Experience > Application Menu and Pop-up List
> Programming Topics for Cocoa > Enabling Menu Items
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden