On Wed, Jan 14, 2009 at 7:24 PM, Chris Parker wrote:
> You should just use NSTemporaryDirectory().
Do not just use NSTemporaryDirectory if you need to perform an atomic
save operation (write new data to location X and then overwrite old
data at location Y by moving X -> Y). If will not work if t
NSTemporaryDirectory() already does (effectively) that, and yields the
same resulting folder.
You should just use NSTemporaryDirectory().
.chris
On Wed, Jan 14, 2009 at 3:44 PM, Graham Cox wrote:
>
> On 15 Jan 2009, at 10:31 am, Chunk 1978 wrote:
>
>> so an app doesn't need administrative righ
On 15 Jan 2009, at 10:31 am, Chunk 1978 wrote:
so an app doesn't need administrative rights to writeToFile in the /
tmp folder?
___
Don't do that.
Instead use the FindFolder with the 'kTemporaryFolderType' constant.
Here's a Cocoa wrapper (a ca
Every app can write to the tmp folder but take a look at:
NSString * NSTemporaryDirectory (void);
On 15 Jan 2009, at 00:31, Chunk 1978 wrote:
so an app doesn't need administrative rights to writeToFile in the /
tmp folder?
___
Cocoa-dev mailing li
so an app doesn't need administrative rights to writeToFile in the /tmp folder?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lis