NSPopupButton content binding and multiple selections
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