Re: NSSegmentedControl subclass and bindings
Re: NSSegmentedControl subclass and bindings
- Subject: Re: NSSegmentedControl subclass and bindings
- From: Dorian Johnson <email@hidden>
- Date: Fri, 29 Jun 2007 13:00:57 -0500
Ah, alright, now I'm starting to understand it better.
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.
Thanks for the help...
On Jun 29, 2007, at 12:38 PM, mmalc Crawford wrote:
You clearly don't understand how they work...
Views do not emit KVO notifications.
mmalc
On Jun 29, 2007, at 12:45 PM, Jerry Krinock wrote:
Instead of -selectedIndex, try -objectValue. Not sure, but I think
it will give you an NSNumber equal to the selectedIndex.
Setting objectValue doesn't do the trick, either.
_______________________________________________
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