PDFView and Core Data undos
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