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 protected])

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 [email protected]

Reply via email to