• 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: NSMenuItem Action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenuItem Action


  • Subject: Re: NSMenuItem Action
  • From: Steven Degutis <email@hidden>
  • Date: Sat, 27 Feb 2010 14:50:55 -0500

Generally connecting them in IB works just fine. Sometimes this won't be
possible, though, and you should use code to do that (like when creating
items in code). But, keep in mind that the First Responder is in every NIB
file, and works amazingly when you have a menu item that exists in a NIB,
and know what action it sends, but do NOT know what target it sends it to
until runtime. Read more about First Responder in Apple's docs, naturally.

-Steven's 2ยข

On Sat, Feb 27, 2010 at 2:40 PM, David Blanton <email@hidden>wrote:

> What is the best practice for connecting menu items to their actions?
>
> Is it IB, is programatically?
>
> If IB what is the process?
>
> - 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
>



--
Steven Degutis
http://www.thoughtfultree.com/
http://www.degutis.org/
_______________________________________________

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

  • Follow-Ups:
    • Re: NSMenuItem Action
      • From: David Blanton <email@hidden>
References: 
 >NSMenuItem Action (From: David Blanton <email@hidden>)

  • Prev by Date: NSMenuItem Action
  • Next by Date: Re: NSMenuItem Action
  • Previous by thread: NSMenuItem Action
  • Next by thread: Re: NSMenuItem Action
  • Index(es):
    • Date
    • Thread