• 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: Where and how do I know a save completed successfully?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where and how do I know a save completed successfully?


  • Subject: Re: Where and how do I know a save completed successfully?
  • From: Uli Kusterer <email@hidden>
  • Date: Wed, 29 Apr 2015 16:19:18 +0200

On ٢٩‏/٠٤‏/٢٠١٥, at ١١:٠٨, Charles Jenkins <email@hidden> wrote:
> I think it most likely I’m doing this in the wrong place. But what’s the right place? Overriding NSDocument’s setFileModificationDate() would seem like the best way, but the NSDocument Programming guide says messages are sent to setFileURL:, setFileType: and setFileModificationDate: “if appropriate,” so I’m not sure I can count on getting that message.

 I don't think that's a good spot, as it isn't explicitly connected to file saving. I'd try updateChangeCount: instead, and check for NSChangeCleared.

 Also, keep in mind that "Save to..." and the likes also may get used on your document, saving to a different file but (IIRC) leaving the original document dirty. Maybe I'm misremembering what they do, but all those definitely need testing.

-- Uli
http://stacksmith <http://stacksmith/>.org
_______________________________________________

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: Where and how do I know a save completed successfully?
      • From: Charles Jenkins <email@hidden>
References: 
 >Where and how do I know a save completed successfully? (From: Charles Jenkins <email@hidden>)

  • Prev by Date: Re: New information. Was: Re: Weird UITableView problem
  • Next by Date: Re: time of the build
  • Previous by thread: Where and how do I know a save completed successfully?
  • Next by thread: Re: Where and how do I know a save completed successfully?
  • Index(es):
    • Date
    • Thread