Re: NSArrayController KVO question...
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