• 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
Adding NSButton in NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding NSButton in NSMenuItem


  • Subject: Adding NSButton in NSMenuItem
  • From: Adil Saleem <email@hidden>
  • Date: Tue, 14 Jun 2011 06:33:10 -0700 (PDT)

Hi,

I want to add a button in front of Label in every NSMenuItem entry. Is using a custom view the only option or does Cocoa provide some other option as well ?

And if custom view is the way, then how can we detect that button was pressed in which menu item? Because the selector called on press of button will be for button (not menu item), so how can we detect which NSMenuItem was involved in the button click ?

Thank you.
_______________________________________________

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: Adding NSButton in NSMenuItem
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: kvo
  • Next by Date: Can't hide Menu bar
  • Previous by thread: Re: kvo
  • Next by thread: Re: Adding NSButton in NSMenuItem
  • Index(es):
    • Date
    • Thread