New behavior for NSTemporaryDirectory() or applications that access those paths?

  • 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
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today