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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com