• 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: NSArrayController KVO question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController KVO question...


  • Subject: Re: NSArrayController KVO question...
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 22 Nov 2012 09:36:09 +0000

On 21 Nov 2012, at 22:19, Randy Widell <email@hidden> wrote:

> Hmm.  Well, I am updating the model (and the database that backs it).  I just need the UI to reflect it.
Hmm, that sounds wonky.
The whole point of binding is that you can update your model and have your UI reflect the change without any other intervention.
Is this occurring or not?

Say you have a model M with properties P1 and P2.

1. Instantiate an array A of N model M objects.
2. Set the content of array controller AC to array A
3. Bind table view TV col1 to AC.arrangedObjects.P1 and col2 to AC.arrangedObjects.P2

Now you should be able to update any model M property and see the changes reflected in the UI and vice versa.

Regards

Jonathan Mitchell
Mugginsoft LLP



_______________________________________________

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

  • Follow-Ups:
    • Re: NSArrayController KVO question...
      • From: Randy Widell <email@hidden>
References: 
 >NSArrayController KVO question... (From: Randy Widell <email@hidden>)
 >Re: NSArrayController KVO question... (From: "email@hidden" <email@hidden>)
 >Re: NSArrayController KVO question... (From: Randy Widell <email@hidden>)

  • Prev by Date: Re: filterPredicate not effecting NSArrayController
  • Next by Date: Re: NSTableView animation parameters
  • Previous by thread: Re: NSArrayController KVO question...
  • Next by thread: Re: NSArrayController KVO question...
  • Index(es):
    • Date
    • Thread