Hi all,

I have a master-detail interface.  NSTableView is the master; a checkbox
is the detail.  The checkbox corresponds to a boolean property of my
model object, and is so bound.  In the case of multiple selection in the
tableview, I'd like the checkbox to show 'mixed state' as appropriate.
It's mostly working.

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:

checked->unchecked
unchecked->checked
mixed->checked

What's the cleanest way to do this?

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to