• 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
Multiple untitled docs are saving to same file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple untitled docs are saving to same file


  • Subject: Multiple untitled docs are saving to same file
  • From: Steve Mills <email@hidden>
  • Date: Mon, 29 Apr 2013 13:08:27 -0500

We just noticed something that is wrong. When our saveToURL:ofType:forSaveOperation:completionHandler override gets called for NSAutosaveElsewhereOperation on two different untitled docs, the url is exactly the same, so the 2nd one overwrites the 1st. Why? How does Cocoa formulate the url for untitled autosaved files?

Keep in mind we have preservesVersions and autosavesInPlace both returning NO. We've overridden saveToURL so we can direct autosaves to a folder optionally set by the user. But the incoming url is the problem, before we've even touched it.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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: Multiple untitled docs are saving to same file
      • From: Quincey Morris <email@hidden>
    • Re: Multiple untitled docs are saving to same file
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Laying out text in NSTextView around a subview
  • Next by Date: Re: Laying out text in NSTextView around a subview
  • Previous by thread: Re: Rotated CALayer and issues with coordinates (should I convert them manually?)
  • Next by thread: Re: Multiple untitled docs are saving to same file
  • Index(es):
    • Date
    • Thread