Re: Dialog Command Keys
Re: Dialog Command Keys
- Subject: Re: Dialog Command Keys
- From: Joar Wingfors <email@hidden>
- Date: Tue, 26 Jul 2011 10:35:47 -0700
On 26 jul 2011, at 10:30, Bill Appleton wrote:
> i set the target and the action on my menu items -- this is so that i can get my handler called when someone selects a menu item
> i will re-read the event handler docs with regard to menu items (no keyboard issues) and see if that helps
You typically can't (or at least shouldn't) set a concrete, ie. non-nil, target for menu items that may serve different parts of the UI at different times - Like Cut / Copy / Paste. You may ask: If I don't set a target, how will the menu item find a receiver for its action? Well, that's a service provided by the responder chain. One of the core concepts of UI programming on the Mac, so hone in on that when you're reading up on t his.
Cheers,
j o a r
_______________________________________________
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