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

Re: Get NSPopUpButton from NSMenuItem


  • Subject: Re: Get NSPopUpButton from NSMenuItem
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 09 Jun 2011 13:06:34 -0700

On Jun 9, 2011, at 12:51, Siegfried wrote:

> From the other items, I just need to retrieve their tags so I didn't connect the action on the popup as it was an ivar already, and just created a specific action for the "Cusom" item.

Is there any reason not to use a specific tag for the custom item? It may seem like an uglier way to do it, but given that you've got to get back to the original popup button, I think it's less code overall to detect the tag in your common code instead of trying to route that one item differently.

The only reason to avoid the tag approach is if there's no unique tag value you can set aside for this item.


_______________________________________________

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: 
 >Get NSPopUpButton from NSMenuItem (From: Siegfried <email@hidden>)
 >Re: Get NSPopUpButton from NSMenuItem (From: Quincey Morris <email@hidden>)
 >Re: Get NSPopUpButton from NSMenuItem (From: Siegfried <email@hidden>)

  • Prev by Date: Re: Get NSPopUpButton from NSMenuItem
  • Next by Date: Re: Get NSPopUpButton from NSMenuItem
  • Previous by thread: Re: Get NSPopUpButton from NSMenuItem
  • Next by thread: Re: Get NSPopUpButton from NSMenuItem
  • Index(es):
    • Date
    • Thread