• 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
NSArrayController Undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSArrayController Undo
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: selecting a "sub" icon from an icns file
  • Next by Date: new to cocoa
  • Previous by thread: Re: selecting a "sub" icon from an icns file
  • Next by thread: Re: NSArrayController Undo
  • Index(es):
    • Date
    • Thread