Re: NSMixedState and bindings
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