Re: Enabling menu items...
Re: Enabling menu items...
- Subject: Re: Enabling menu items...
- From: Quincey Morris <email@hidden>
- Date: Thu, 17 Dec 2009 12:37:54 -0800
On Dec 17, 2009, at 12:20, Jim Majure wrote:
> I tried your suggestion of changing the action to "myDelete:", but it still doesn't work. Something else responding to the action first seems like a possible problem.
> I added "myDelete:" to the First Responder in IB, then tied the "Delete" menu item to it using click-drag. I changed the name of the action in my custom view to "(IBAction) myDelete: (id) sender".
>
> At the time I attempt to invoke the menu item, my view has received the "becomeFirstResponder" but has not yet received the "resignFirstResponder", so I THINK i'm the firstResponder.
What if you add a brand-new item to the Edit menu, with your 'myDelete:' action? Some of the pre-defined menu items are slightly magical (e.g. the help item and the one to show the color picker window, amongst others).
_______________________________________________
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