Newbie Button Matrix / Bindings
Newbie Button Matrix / Bindings
- Subject: Newbie Button Matrix / Bindings
- From: Chris Outwin <email@hidden>
- Date: Fri, 12 Aug 2005 14:21:30 -0500
I have a matrix of three NSButtons which use Bindings' selectedTag
via selection.clearColor(NSObjectController).
What Works
When the second or third button is pressed, setClearColor: is called
and the associated custom OpenGL view updates.
The Problem
If the first button is the first to be selected after the app starts,
setClearColor: is not called. However, the first button works
normally if its selection is preceded by either of the other two
buttons.
- (void)setClearColor: (id) sender {
clearColor = [sender intValue];
[self setNeedsDisplay: YES];
}
- (ClearColors)clearColor {
return clearColor;
}
I'm using OS X 10.4.2 and Xcode 2.1 on a G5.
Thank you very much.
_______________________________________________
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