• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Menu Items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Where in the MVC should my code go?
  • Next by Date: Re: Custom NSCell
  • Previous by thread: Menu Items
  • Next by thread: Re: Menu Items
  • Index(es):
    • Date
    • Thread