Catching edits to items in a table view using bindings
Catching edits to items in a table view using bindings
- Subject: Catching edits to items in a table view using bindings
- From: "Matthew M. Swann" <email@hidden>
- Date: Fri, 3 Jun 2005 21:12:07 -0700
Hi all,
I have a table view that is bound to an array controller that is
itself bound to a core data store. Certain table columns are
editable in my view, and I'd like to be notified when these values
change. The array controller handles updating the attribute values
of my managed objects, but my managed objects are abstractions of
physical, on-disk files -- and I'd like to update file metadata when
a user changes a value in the table view.
I expected that I would be able to add myself as an observer to the
array controller, but that doesn't seem to give me the information I
want — it will tell me when items are added or deleted, but not when
values change.
Implementing the table view data source's
"tableViewSetObjectValueForLocation" method seems like it would get
me what I want, but I'm curious whether there's a better way to get
this data. I wouldn't be implementing a data source for my table
view if it weren't for the need to handle drag and drop, hence my
hesitation.
Any ideas? Is there a key path I can observe that will get me the
attribute and new value for a change to a managed object in an array
controller?
Thanks!
Matt
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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