Temporary directory names?
Temporary directory names?
- Subject: Temporary directory names?
- From: Rick Mann <email@hidden>
- Date: Sat, 14 May 2011 01:46:42 -0400
10.6.7. I'm using
-[URLForDirectory:inDomain:appropriateForURL:create:error:]
(with create: true) to get a NSItemReplacementDirectory for safe-saving of a file. I create a temporary file in that directory for writing, then replace.
The directory that gets created looks like (for my app "Foo"):
/private/var/folders/0O/0O9Zc+ZKFCy+BtbYF754gk+++TI/-Tmp-/
/TemporaryItems/(A Document Being Saved By Foo 4)/
Each time I call -URLForDirectory:…, my app, it's a new directory ("…Foo 5", "…Foo 6", etc.). In the TemporaryItems directory I see Numbers created one named "TEMP_com.apple.iWork.Numbers_33370_326976525_1".
How does Numbers control the name of the directory it creates?
Is there any way to keep Cocoa from making a new directory every time?
TIA,
--
Rick
_______________________________________________
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