setState has no effect on an NSButton with value binding?
setState has no effect on an NSButton with value binding?
- Subject: setState has no effect on an NSButton with value binding?
- From: George Orthwein <email@hidden>
- Date: Thu, 25 May 2006 12:03:48 -0400
I'm trying to use setState on a check box button from the action
method of another control with no success. The checkbox has its value
bound to an NSArrayController (bound to a moc).
As a workaround, I can just modify via the controller though it is a
bit more cumbersome:
[[[NSDocumentController sharedDocumentController] currentDocument]
setValue:[NSNumber numberWithBool:NO]
forKeyPath:@"docPrefsController.selection.bgImage.gradientEnabled"];
I can believe that setState would be disabled if the value is
bound... but I can't find anything in the docs about that and none of
the binding options seem relevant so I thought I'd check to see if
there was something else I may be missing.
Thanks,
George
_______________________________________________
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