Undo and NSArrayController and CoreData
Undo and NSArrayController and CoreData
- Subject: Undo and NSArrayController and CoreData
- From: Jason Swain <email@hidden>
- Date: Thu, 9 Mar 2006 08:49:29 +0000
I have a NSArrayController that is bound to the selection of another
NSArrayController (don't think this is significant, but just in
case). All works fine for user interaction, but when Undo is used,
i.e. the Managed Object Model is changed underneath the
NSArrayController it does not update correctly.
I have some debug code that gives me a count of the objects in the
array, both through the NSArrayController and directly from the
CoreData objects. The direct count is correct, and NSArrayController
still has the old array of objects (before the undo). So how do I get
the NSArrayController to update? I thought that this would happen
automatically through the binding, but it does not. I've tried using
any methods that looked remotely like they would cause the array
controller to reread it's data (-fetch etc), but this does not help.
Jason
_______________________________________________
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