• 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: How to defer NSDocument:writeToFile:ofType ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 -----

  • Follow-Ups:
    • Re: How to defer NSDocument:writeToFile:ofType ?
      • From: Manfred Lippert <email@hidden>
References: 
 >Re: How to defer NSDocument:writeToFile:ofType ? (From: Manfred Lippert <email@hidden>)

  • Prev by Date: Re: How viable is Cocoa development?
  • Next by Date: Re: How viable is Cocoa development?
  • Previous by thread: Re: How to defer NSDocument:writeToFile:ofType ?
  • Next by thread: Re: How to defer NSDocument:writeToFile:ofType ?
  • Index(es):
    • Date
    • Thread