• 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: NSMixedState and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMixedState and bindings


  • Subject: Re: NSMixedState and bindings
  • From: Steven Kramer <email@hidden>
  • Date: Mon, 21 Mar 2005 16:16:13 +0100


Op 21-mrt-05 om 7:21 heeft Aaron Tuller het volgende geschreven:

I have a checkbox (NSButton) bound in IB, through a value transformer, I return [NSNumber numberWithBool:YES] or [NSNumber numberWithBool:NO] to set the button state, works great. I want to used the mixed state, in awakeFromNib i set the checkbox to allow mixed state, but when i return [NSNumber numberWithInt:NSMixedState] it doesn't do it. I tried to find the value binding documentation on NSButton but it wasn't there, or i missed it.

So I guess my question is, what sort of value is the NSButton expecting to get into its mixed state?


Nothing. I filed a bug report on this. If you want to use mixed state you have to set allowsMixedState before you bind the value. Or you can wait for Tiger, it appears to have been fixed...

Regards

   Steven Kramer


Regards,

Steven Kramer

--
email@hidden
http://sprintteam.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


References: 
 >NSMixedState and bindings (From: Aaron Tuller <email@hidden>)

  • Prev by Date: Re: (newbie question) Putting special characters in NSStrings
  • Next by Date: Re: (newbie question) Putting special characters in NSStrings
  • Previous by thread: NSMixedState and bindings
  • Next by thread: Newbie - Using NSButtonCell in a table
  • Index(es):
    • Date
    • Thread