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

Re: Handling NSMenuItem Selections


  • Subject: Re: Handling NSMenuItem Selections
  • From: Jeremy Dronfield <email@hidden>
  • Date: Mon, 10 May 2004 20:30:53 +0100

You can identify it by its tag or title: [sender tag] or [sender title] in the menu item's action method. (Use -setTag: to give your item a tag when you create it.)

Regards,

-Jeremy

===================================
SkoobySoft, home of viJournal
email: email@hidden or visit:
http://freespace.virgin.net/jeremy.dronfield/skoobysoft.html
===================================

On 10 May 2004, at 7:00 pm, David Piasecki wrote:

I added NSMenuItems to an NSMenu via code instead of IB. When I click on the NSMenuItem, I need a way of knowing which NSMenuItem I clicked on.

David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Handling NSMenuItem Selections
      • From: "David Piasecki" <email@hidden>
References: 
 >Handling NSMenuItem Selections (From: "David Piasecki" <email@hidden>)

  • Prev by Date: Re: Callbacks, GUI updates and threading
  • Next by Date: NSImageView detect click.
  • Previous by thread: Re: Handling NSMenuItem Selections
  • Next by thread: Re: Handling NSMenuItem Selections
  • Index(es):
    • Date
    • Thread