• 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
New behavior for NSTemporaryDirectory() or applications that access those paths?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: re: NSManagedObjectContext - Key Value compliant
  • Next by Date: XCode 3 SCM not working (CVS and SVN)
  • Previous by thread: Anand is your Yaar! :)
  • Next by thread: XCode 3 SCM not working (CVS and SVN)
  • Index(es):
    • Date
    • Thread