How to set a mixed checkbox?
How to set a mixed checkbox?
In my NSOutlineView, I have a series of checkboxes ( [buttonCell
setButtonType: NSSwitchButton], where "buttonCell" is an
NSButtonCell), however, I can't seem to set a mixed state. In my -
(id)outlineView:(NSOutlineView *)olv objectValueForTableColumn:
(NSTableColumn *)tableColumn byItem:(id)item
I do a:
objectValue = [NSNumber numberWithInt: [node mRunState]];
If I return a 0, the checkbox turns off, a 1 on. However, if I
return a -1 (NSMixedState), the checkbox stays on (instead of the
horizontal bar "mixed" state).
How do I set a mixed state?
Thanks!
Mark
_______________________________________________
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