Newbie Bindings Question
Newbie Bindings Question
- Subject: Newbie Bindings Question
- From: Michael Bianco <email@hidden>
- Date: Tue, 17 May 2005 14:29:45 -0400
Hey All,
Newbie Cocoa Programmer here with a simple (hopefully!) question.
I have a NSMutableArray in a controller class that is filled with
instances of a custom class. I made a NSArrayController whose content
array is bound to the NSMutableArray in my controller class. I have a
table view whose column is bound to the "state" key of
NSArrayController arrangedObjects. The table displays the data
correctly, but when i change the state key of a object in
NSMutableArray the table does not update to represent the change made.
If i click on the row in the table that represents the object that had
a change it will refresh its data and represent correctly the "state"
key of the object its representing. How would i get it to update its
data when the "state" key is changed? I would of assumed the table
column would register its self as a observer of the "state" key of
each of the objects in arrangedObjects, but as far as i can see it
doesn't. I know i could just send the table a reloadData message but
that would be synching the view with the model which is what cocoa
bindings is supposed to get rid of...
Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden