• 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
PDFDocument subclass with an undo manager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PDFDocument subclass with an undo manager


  • Subject: PDFDocument subclass with an undo manager
  • From: Kevin Ross <email@hidden>
  • Date: Mon, 30 Jun 2008 16:02:35 -0700

Hi everyone, I have a question that might seems a little silly. I have a PDFDocument subclass which can perform page impositions. I would also like to be able to undo the impositions. In the methods I have this when I make the change to the PDF:

[[undoManager prepareWithInvocationTarget:self] initWithData:[self dataRepresentation]];
[self initWithData:(NSData *)newPDFData];



When I call -undo: later, it works, but I can't get it to -redo:

Is what I'm trying to do even possible this way ? Is there a better way?

Thanks for any pointers and/or suggestions!!

Kevin
_______________________________________________

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: PDFDocument subclass with an undo manager
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: iPhone: Flip core animation performance with images in UIButtons
  • Next by Date: Implementing NSOutlineView autosaveExpandedItems with CoreData
  • Previous by thread: Re: iPhone: Flip core animation performance with images in UIButtons
  • Next by thread: Re: PDFDocument subclass with an undo manager
  • Index(es):
    • Date
    • Thread