• 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
PDFView and Core Data undos
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PDFView and Core Data undos


  • Subject: PDFView and Core Data undos
  • From: Justin Hawkwood <email@hidden>
  • Date: Tue, 8 Apr 2008 14:19:32 -0700

I have a PDFView in my Core Data application which I generate when the tab is changed to view it. During the generation of the PDF file, the undoManager seems to get cleared out (but the window stays dirty) when I call:

[myPDFView setDocument:previewPDF];

So I tried adding the following to the call:

[[myPDFView undoManager] disableUndoRegistration];
[myPDFView setDocument:previewPDF];
[[myPDFView undoManager] enableUndoRegistration];

But I get the following error, and it still clears out the undo:

enableUndoRegistration: NSUndoManager 0x1806d0 is in invalid state, enableUndoRegistration may only be invoked with matching call to disableUndoRegistration


How do I call [myPDFView setDocument:previewPDF] without clearing out the undoManager?


~ Justin
_______________________________________________

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: PDFView and Core Data undos
      • From: Antonio Nunes <email@hidden>
  • Prev by Date: Re: Continunous NSSegmentedControl?
  • Next by Date: missing (some) window names in Window menu
  • Previous by thread: Re: Menu on system bar
  • Next by thread: Re: PDFView and Core Data undos
  • Index(es):
    • Date
    • Thread