Re: Master-detail interface, multiple selection, and mixed state checkbox state transitions
Re: Master-detail interface, multiple selection, and mixed state checkbox state transitions
- Subject: Re: Master-detail interface, multiple selection, and mixed state checkbox state transitions
- From: "Sean McBride" <email@hidden>
- Date: Wed, 15 Apr 2009 16:42:03 -0400
- Organization: Rogue Research Inc.
On 4/15/09 2:58 PM, I. Savant said:
>> The problem is that clicking the checkbox, as per documentation, "cycles
>> through [the 3 states] in this order: on, off, mixed, on, and so
>> forth." But I don't want the user to be able to choose 'mixed state'.
>> I want this transition:
>
> Google "NSButton bindings" to get the bindings reference. The
>"value" key says:
>
>"If the value binding represents a multiple value selection, and both
>YES and NO values are represented in the bound key, the button is
>temporarily set to allow mixed states if it doesn't already. If the
>button is already configured to allow mixed states, the setting is
>unchanged."
>
> So ... I gather from this that if you have the button (in IB) set to
>*not* allow mixed state, the behavior you want should be what you get.
Indeed. Thanks for the reference.
>Is this not the case?
Correct. But as you say, it seems that it should do that. So I created
a test app and it behaves as expected there. I added a 2nd checkbox in
my real app and bound it identically. That one works, and the other
does not. I compared every option in IB between the 2 checkboxes, and
there is no difference! Oh well, at least it's 'solved'.
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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