• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Undo Names in NSPersistentDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Undo Names in NSPersistentDocument
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSApplicationLoad() can't connect to window server in user logged out.
  • Next by Date: Re: Detecting system protected folders.
  • Previous by thread: Re: NSApplicationLoad() can't connect to window server in user logged out.
  • Next by thread: Re: Undo Names in NSPersistentDocument
  • Index(es):
    • Date
    • Thread