• 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
How to set multiple values placeholder for NSPopupButton selectedTag binding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to set multiple values placeholder for NSPopupButton selectedTag binding?


  • Subject: How to set multiple values placeholder for NSPopupButton selectedTag binding?
  • From: Rick Mann <email@hidden>
  • Date: Sun, 17 May 2009 23:58:49 -0700

Hi. I've got a popup button with a bunch of GMT offsets configured in IB, and bound via selectedTag to an NSArrayController's selection's gmtOffset property. Each item in the menu has a tag value set. The binding is properly setting the values of the selection, even if multiply selected, and the popup properly updates as the selection changes.

I'd like to display some custom text in that popup when there are multiple values in the selection. But I'm pretty sure I need to specify a tag value in the "Multiple Values Placeholder" field in IB (under the selectedTag binding of the NSPopupButton), but I don't want to create an item in the popup menu just for this value; that would imply (and allow) the user could select it, which wouldn't make sense.

What's the right way to do this?

TIA,
--
Rick

_______________________________________________

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


  • Prev by Date: Re: LMSetKey[Rep]Thresh
  • Next by Date: Re: LMSetKey[Rep]Thresh
  • Previous by thread: menus within NSTable
  • Next by thread: How to set multiple values placeholder for NSPopupButton selectedTag binding?
  • Index(es):
    • Date
    • Thread