Undo Names in NSPersistentDocument
Undo Names in NSPersistentDocument
- Subject: Undo Names in NSPersistentDocument
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 19 Dec 2009 08:08:06 +0700
I have a subclass of NSPersistentDocument. MyDocument.nib has two NSTableViews bound to NSArrayControllers and some + and - buttons connected to add: resp. remove: of these controllers.
The table view are editable.
And, without doing anything about it, everything is undoable. Very impressive.
But: My Edit menu just contains "Undo" - I would much prefer to have something like: "Undo add" or even "Undo add department" or "Undo edit last name" etc.
How would I do this?
Subclass the NSArrayControllers and overrriding add: and remove: to call setActionName:?
Or is there a simpler way?
Kind regards,
Gerriet.
_______________________________________________
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