• 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
Re: Saving undo actions with document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving undo actions with document


  • Subject: Re: Saving undo actions with document
  • From: Youngjin Kim <email@hidden>
  • Date: Wed, 5 Sep 2001 19:54:22 +0900

I have a naive idea that it might be possible to save NSUndoManager object's contents itself instead tracing document's changes separately with NSUndoManager. but NSUndoManager doesn't seem to allow access to contents of its instance. Would this be possible? how if so?

Have you tried just serializing the NSUndoManager with -encodeWithCoder:? I haven't tried it, but it seems to me that an undo managers should be archivable just like any other Appkit object.

Yes I have, John. but I doesn't seem to conform NSCoding protocol.

[NSArchiver archiveRootObject:myundos toFile:@"myundos.dat"];
-[NSUndoManager encodeWithCoder:]: selector not recognized.

Maybe I was too excited about undo manager? <grin>
Tyvm,

Youngjin


References: 
 >Re: Saving undo actions with document (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: CFRunLoop
  • Next by Date: Re: posting replies
  • Previous by thread: Re: Saving undo actions with document
  • Next by thread: -runModalForWindow and drawers
  • Index(es):
    • Date
    • Thread