Re: Binding (KVC/KVO) for C struct datatypes
Re: Binding (KVC/KVO) for C struct datatypes
- Subject: Re: Binding (KVC/KVO) for C struct datatypes
- From: Scott Stevenson <email@hidden>
- Date: Thu, 4 Oct 2007 17:06:17 -0700
On Oct 4, 2007, at 11:48 AM, Charles Steinman wrote:
2. You can't bind a keypath even if all the segments
in it are KVC-compliant. The binding argument has to
be an exposed binding of the object you're sending the
message to.
I don't believe this is true. In fact, mmalc specifically calls this
out on his bindings page under the "manual bindings" section:
"The backgroundColor variable is not exposed as an available binding
in Interface Builder; you can nevertheless establish your own binding
programatically. There is no need to subclass NSTextField, override
+exposeBinding".
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
That said, not all properties can be bound for all classes, but it's
not exclusively determined by which bindings are exposed.
- Scott
_______________________________________________
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