• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying To Understand Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Trying To Understand Bindings (From: "Bridger Maxwell" <email@hidden>)
 >Re: Trying To Understand Bindings (From: "Bridger Maxwell" <email@hidden>)

  • Prev by Date: Re: Trying To Understand Bindings
  • Next by Date: Re: Trying To Understand Bindings
  • Previous by thread: Re: Trying To Understand Bindings
  • Next by thread: Re: Trying To Understand Bindings
  • Index(es):
    • Date
    • Thread