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

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: "I. Savant" <email@hidden>
  • Date: Wed, 15 Apr 2009 14:58:26 -0400

On Wed, Apr 15, 2009 at 2:36 PM, Sean McBride <email@hidden> wrote:

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

  Sounds reasonable.


> 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.
Is this not the case?

--
I.S.
_______________________________________________

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: "Sean McBride" <email@hidden>
References: 
 >Master-detail interface, multiple selection, and mixed state checkbox state transitions (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Daylight Savings Time
  • Next by Date: Networking
  • Previous by thread: Master-detail interface, multiple selection, and mixed state checkbox state transitions
  • Next by thread: Re: Master-detail interface, multiple selection, and mixed state checkbox state transitions
  • Index(es):
    • Date
    • Thread