Re: Trying To Understand Bindings
Re: Trying To Understand Bindings
- Subject: Re: Trying To Understand Bindings
- From: Ken Thomases <email@hidden>
- Date: Sat, 13 Dec 2008 03:07:22 -0600
On Dec 13, 2008, at 1:40 AM, Bridger Maxwell wrote:
Woops, I posted some wrong code which might confuse the issue. This
is the
real code that binds the view to the dictionary, but only sends
notifications from the view to the dictionary (and not the other way
around).
[databaseClient bind:@"database.selectedShortRangeContact"
toObject:sineWaveView withKeyPath:@"connectedContact" options:nil];
Well, that sort of explains why the one-way-ness that you were seeing
was in the opposite direction of what I would expect.
However, that bind:... invocation is all wrong. The one in your
original message makes more sense. You typically bind a view to a
controller, not the other way around.
I would expect the above to cause errors due to the fact that the
binding named is in the form of a key path, when it should be a
binding name (which may be a property name).
Regards,
Ken
_______________________________________________
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