Re: NSSegmentedControl subclass and bindings
Re: NSSegmentedControl subclass and bindings
- Subject: Re: NSSegmentedControl subclass and bindings
- From: mmalc Crawford <email@hidden>
- Date: Fri, 29 Jun 2007 15:38:46 -0700
On Jun 29, 2007, at 11:00 AM, Dorian Johnson wrote:
Is there any way I can implement this without overriding bind: and
tracking the observed objects myself, since NSSegmentedControl
should, in theory, be doing the heavy lifting for me? If not I'll
write it all, but I'm trying not to reinvent the square wheel since
I obviously am not experienced in this area.
On Mac OS X 10.4, you can get information about a given binding using -
infoForBinding:. You can then send a setValue:forKey: message to the
observed object when the value changes. See <http://developer.apple.com/samplecode/BindingsJoystick/
>.
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden