• 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: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?


  • Subject: Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
  • From: Quincey Morris <email@hidden>
  • Date: Sun, 20 Apr 2014 22:47:16 -0700

On Apr 20, 2014, at 22:26 , Kyle Sluder <email@hidden> wrote:

>> In a Save the dirty mark is not cleared until the file is written, thus it
>> asks before quitting about saving the document.

> Come to think of it, does your app adopt Lion Autosave?

The implication of “dirty mark” — if taken literally — is that this is pre-Lion NSDocument behavior. The newer behavior has “Edited” text in the title bar, of course, and no mark in the close button. Perhaps that’s why it’s not behaving as expected on quitting — the deferral of termination may happen only with “modern” NSDocument behavior.

Unfortunately, trying to predict the effects of implementing various combinations of the various overrides, return values and miscellaneous dreck that’s accumulated in NSDocument API since 10.5 is probably beyond the ability of mere mortals.

_______________________________________________

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


References: 
 >Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit? (From: Trygve Inda <email@hidden>)
 >Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
  • Next by Date: Re: Strange toolbar/view/resize cursor interaction
  • Previous by thread: Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
  • Next by thread: Hanging when using NSAppleScript
  • Index(es):
    • Date
    • Thread