Re: manual key value binding
Re: manual key value binding
- Subject: Re: manual key value binding
- From: Dustin Voss <email@hidden>
- Date: Wed, 19 Nov 2003 17:26:08 -0800
I used this to bind the "contentArray" property of an array controller
to an array. It seemed to work just fine. I have not, however, tried to
bind something like a button's "hidden" property to a Boolean. I expect
it should work just fine.
On 18 Nov, 2003, at 7:51 PM, Matthew Johnson wrote:
If I have two model objects that both implement KVC and KVO properly
it looks like I should be able to expose bindings on one of them and
send it bind:toObject:withKeyPath:options using a key path in the
other object to set up a "lightweight" binding between these model
objects. I definitely don't want or need the overhead of a full
controller in this scenario, just a simple automatic binding. I don't
have a specific scenario for this in mind right now, but I have some
general ideas that seem to be leading in this direction.
My questions are will this work and are there any caveats I should be
aware of? I haven't seen anything of this nature in the documentation
and it seems like this kind of scenario may not have been tested
thoroughly if it is not an expected or recommended use...
Matthew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.