Consider a Core Data document based application that uses a NSArrayController. When the selected objects are removed or deleted and then the user does an undo the selected objects are restored but the selection is not. I have a custom view object.

I would like the state of the selection to also be restored with an undo similar to what happens when working with the Cocoa text system. When text is selected, then deleted, and then the user does an undo, the restored text is selected.

Should I try to use the persistent document undo manager, create an undo manager in the custom NSArrayController subclass, create an undo manager in the custom view, or create an undo manager in one of my other classes?

--Richard

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to