Re: How to defer NSDocument:writeToFile:ofType ?
Re: How to defer NSDocument:writeToFile:ofType ?
- Subject: Re: How to defer NSDocument:writeToFile:ofType ?
- From: "Erik M. Buck" <email@hidden>
- Date: Fri, 25 Jan 2002 16:50:45 -0600
The document is probably being deallocated because when you did not
immediatly call [super saveToFile:..} the framework decided that it could
continue quitting. Try using a modal sheet. Try intercepting -save:
and -saveAs: to hook earlier into the save process. Try
implementing -canCloseDocument to return NO until your sheet is done.
See the following document for guidlines regarding what you want to do and
the possibility of cancelling a quit:
http://developer.apple.com/techpubs/macosx/Essentials/AquaHIGuidelines/AHIGD
ialogs/Saving_Clos_ng_Behavior.html
>
How do I call such a selector on a given object?
See -performSelector: and -performSelector:withObject:
----- Original Message -----