• 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
NSPopupButton content binding and multiple selections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopupButton content binding and multiple selections


  • Subject: NSPopupButton content binding and multiple selections
  • From: David Catmull <email@hidden>
  • Date: Wed, 18 Jan 2006 14:41:48 -0800

I have an NSPopupButton whose 'content' is bound to an array controller, whose 'content' is bound to the selection of a tree controller. The button's 'selectedIndex' is also bound to the tree controller's selection. The result is that the button's menu is based on the selected item's list of options, and the current option index is also stored in the item. So far, this is working as desired.

The problem comes with multiple selections. If the selected items all have the same list of options, that works fine. If they don't match, then the button remains active, but no menu appears when it its clicked. If the selected items have the same option index, then that *number* is displayed on the button, otherwise it is blank. What I want is for the button to be disabled, with some placeholder text displayed. What's the easiest way to do this?

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________
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


  • Prev by Date: Re: CORE DATA: derived values from several entities and managed object instances ??
  • Next by Date: NSTask -launch Freezes
  • Previous by thread: Re: CORE DATA: derived values from several entities and managed object instances ??
  • Next by thread: NSTask -launch Freezes
  • Index(es):
    • Date
    • Thread