• 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
Master-detail interface, multiple selection, and mixed state checkbox state transitions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Master-detail interface, multiple selection, and mixed state checkbox state transitions


  • Subject: Master-detail interface, multiple selection, and mixed state checkbox state transitions
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 15 Apr 2009 14:36:30 -0400
  • Organization: Rogue Research Inc.

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                 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

  • Follow-Ups:
    • Re: Master-detail interface, multiple selection, and mixed state checkbox state transitions
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: filteredArrayUsingPredicate and points
  • Next by Date: Re: C: treated as a path component
  • Previous by thread: [ANN] ObjectiveFlickr 2.0, a Flickr API framework for Mac and iPhone
  • Next by thread: Re: Master-detail interface, multiple selection, and mixed state checkbox state transitions
  • Index(es):
    • Date
    • Thread