• 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: synchronize the content of two arrays with binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: synchronize the content of two arrays with binding


  • Subject: Re: synchronize the content of two arrays with binding
  • From: Adhamh Findlay <email@hidden>
  • Date: Wed, 20 Feb 2008 07:01:35 -0600

That's not how bindings work. Your code isn't using the available bindings.

http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=F78&q=cocoa+bindings+tutorial&btnG=Search

http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=F78&q=nsarraycontroller+bindings&btnG=Search

On Feb 20, 2008, at 4:23 AM, Mei Fang Liau wrote:

I have a boolean array from a custom view and would like to synchronize the
content of the array with another boolean array from a custom controller
(inherited from NSObject) These two arrays has the same capacity( bool
test1[16] and bool test2[16] respectively)


I tried [testView bind:@"test1" toObject: testController withKeyPath:
@"test2" options:nil];

but it actually doesn't work, the debugger showes "test1" and "test2" are
undefined keyvalues. I tried to bind other attributes such as integer
instances and it works fine.



how can I use binding to synchronize the contents of two arrays? Thanks for
the help!
_______________________________________________


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

_______________________________________________

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: 
 >synchronize the content of two arrays with binding (From: "Mei Fang Liau" <email@hidden>)

  • Prev by Date: Re: QTMovieLayer?
  • Next by Date: How to draw a CGImage object to a NSView?
  • Previous by thread: synchronize the content of two arrays with binding
  • Next by thread: Re: synchronize the content of two arrays with binding
  • Index(es):
    • Date
    • Thread