New behavior for NSTemporaryDirectory() or applications that access those paths?
New behavior for NSTemporaryDirectory() or applications that access those paths?
- Subject: New behavior for NSTemporaryDirectory() or applications that access those paths?
- From: Jaime Magiera <email@hidden>
- Date: Sun, 28 Oct 2007 19:35:13 -0400
Hey folks,
On Tiger, my app could successfully generate a tmp file path in /var/
using NSTemporaryDirectory(). That path was then fed to Keynote via
AppleEvent to launch a presentation. On Leopard, the process stopped
working. I narrowed it down to the following:
Keynote could not find...
"/var/folders/LV/LVdngH20EMesjNJ5NCNXRE+++TI/-Tmp-/com.MyCompany.MyApp/
MyAppDocument1193611653.988417/presentations/testpresentation.key"
However, it was able to find...
"/private/var/folders/LV/LVdngH20EMesjNJ5NCNXRE+++TI/-Tmp-/
com.MyCompany.MyApp/MyAppDocument1193611653.988417/presentations/
testpresentation.key"
If I pre-pend the "private" to all the generated URLs before passing
them to Keynote, everything works like it did before. Permissions on /
var are lrwxr-xr-x.
Has anyone heard of something changing in the way that Leopard
applications handle access to the /tmp? This is all very odd. Can
anyone else reproduce this?
thanks for any info,
Jaime
_______________________________________________
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