• 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: Just when I thought I understood bindings.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Just when I thought I understood bindings.


  • Subject: Re: Just when I thought I understood bindings.
  • From: Tim Isted <email@hidden>
  • Date: Thu, 9 Oct 2008 11:00:03 +0100

Sorry, my bad for writing confusion and rubbish at 1:40am.

I meant to talk about discussion as here:
http://www.cocoabuilder.com/archive/message/cocoa/2005/5/27/137132
but see also the next messages

Tim

On 9 Oct 2008, at 06:36, Scott Anguish wrote:


On 8-Oct-08, at 8:46 PM, Tim Isted wrote:

Did you setup the bindings using Interface Builder or programatically? If programatically, they work in only one direction so you need to call

[object1 bind:@"value" toObject:object2 withKeyPath:@"whateverPathForKeyIs" options:nil]; and
[object2 bind:@"value" toObject:object1 withKeyPath:@"whateverPathForKeyIs" options:nil];


Otherwise, make sure you're content object is KVC/KVO compliant etc.

This isn't correct.

Setting bindings up manually vs IB is the same.

The message flow discussion in the Cocoa Bindings doc illustrates how the data flows in both directions.



_______________________________________________

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: 
 >Just when I thought I understood bindings. (From: Chris Idou <email@hidden>)
 >Re: Just when I thought I understood bindings. (From: Tim Isted <email@hidden>)
 >Re: Just when I thought I understood bindings. (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Where is close/cancel icon used in search field & Safari etc.
  • Next by Date: Re: NSUndoManager f@*#ing up Core Data database
  • Previous by thread: Re: Just when I thought I understood bindings.
  • Next by thread: Re: Just when I thought I understood bindings.
  • Index(es):
    • Date
    • Thread