• 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: NSMenu and the view it is a menu of
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenu and the view it is a menu of


  • Subject: Re: NSMenu and the view it is a menu of
  • From: j o a r <email@hidden>
  • Date: Thu, 31 Aug 2006 22:35:57 +0200


On 31 aug 2006, at 20.08, Benjámin Salánki wrote:

I need to be able to decide what NSView item a given menu was set as a menu using setMenu:. i.e. once i choose a menu item the action it performs should be able differentiate between the source items them menu was displayed from.

You would have to set this information in the menu item (for example via setRepresentedObject:, or setTag:) as the menu is created. I don't think you can figure it out once it's opened.


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSMenu and the view it is a menu of
      • From: Benjámin Salánki <email@hidden>
References: 
 >NSMenu and the view it is a menu of (From: Benjámin Salánki <email@hidden>)

  • Prev by Date: Re: IBPalettes
  • Next by Date: Re: NSMenu and the view it is a menu of
  • Previous by thread: NSMenu and the view it is a menu of
  • Next by thread: Re: NSMenu and the view it is a menu of
  • Index(es):
    • Date
    • Thread