On 2011 Feb 09, at 15:22, Darren Wheatley wrote:

> I have some code that does this update [update the values in the data 
> inspector panel], but the changes are not mirrored in the main NSTableView, 
> and are also not saved to the Core Data store.

I think that what you call a "data inspector" is more commonly referred to as a 
"detail view".

> I'm assuming that this is a KVO-type issue, in that the code update of the 
> fields in the data inspector is not notifying the appropriate objects?

Your code should update the *data model*, not the field values in the detail 
view.  Provided that this is done using the standard (KVO-compliant) accessors, 
 Cocoa bindings will then propagate these changes in your data model to your 
two views (detail view and table view).

Maybe it could be make to work the way you're doing it, but it's much easier to 
follow the beaten path as I have described.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to