On 19/02/2009 15:36, "Michael Ash" <michael....@gmail.com> wrote:

> If you're looking for more information, note that NSTemporaryDirectory
> is essentially equivalent to /tmp on a normal UNIX system, although
> it's actually in a different location.

Hi Mike,

that's not quite true, NSTemporaryDirectory() should be somewhere like:
/var/folders/6G/6GtcG4aOHt0FanslHMn1Hk+++TI/-Tmp-/
which includes the security session ID in the path. That means that even if
the same user is running your Foundation code multiple times in different
login sessions, they won't be able to clobber each other.

Cheers,
Graham.
--
Graham Lee
Senior Macintosh Software Engineer, Sophos Plc.
+44 1235 540266
http://www.sophos.com/


Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United 
Kingdom.
Company Reg No 2096520. VAT Reg No GB 348 3873 20.
_______________________________________________

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)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to