NSArrayController Selection and Managed Object Context Undo
NSArrayController Selection and Managed Object Context Undo
- Subject: NSArrayController Selection and Managed Object Context Undo
- From: Richard Somers <email@hidden>
- Date: Thu, 06 Oct 2011 01:14:23 -0600
It is very common for Applications to update the selection during undo operations.
By default NSArrayController automatically selects objects as they are inserted. This works if objects are added using one of the controller's add or insert methods. If objects are added directly to the controller content object using other means then this mechanism does not work.
Take for example a NSArrayController with a managed object context for the content. If one or more objects are added to managed object context as the result of an undo, the controller's selection does not change or update.
Is there an easy way to set the controller's selection when an undo operation adds objects back into a managed object context?
--Richard
_______________________________________________
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