NSArrayController Undo
NSArrayController Undo
- Subject: NSArrayController Undo
- From: Richard Somers <email@hidden>
- Date: Thu, 13 May 2010 22:20:09 -0600
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@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