Re: Menu Items
Re: Menu Items
- Subject: Re: Menu Items
- From: Gideon King <email@hidden>
- Date: Tue, 2 Mar 2010 09:58:47 +1000
There is no target when you connect to the first responder - in effect the target is determined at runtime by the window order, view hierarchies, controllers etc. I suggest you read up on the responder chain. Once you understand it, it's very logical and powerful.
HTH
Gideon
On 02/03/2010, at 9:47 AM, David Blanton wrote:
> I connected a menu item to an action in First Responder. The action is defined in a view.
>
> This, apparently, does not define the Target as I put validateMenuItem in the same view as the action but it is not called.
>
> So, how does one define the Target?
>
> The view and the Menu Item are in different nib files.
>
> I really need to get a handle on how the best way to work with menus.
>
> -db
_______________________________________________
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
References: | |
| >Menu Items (From: David Blanton <email@hidden>) |