3 Replies Latest reply: Oct 31, 2012 9:16 AM by GBasile
chetan.s Level 1 Level 1 (0 points)

Hello Everybody,

 

We have application which creates pages/keynote document and opens it into KeyNote and Pages.

 

I am using following code for opening file

 

[[NSWorkspace sharedWorkspace] openFile:[NSString stringWithUTF8Stringchar*)destFilePath]];

 

 

but when I tried open file which is created in Documents(which is in Container of MyApp), gives following warning in console

 

9/30/11 3:50:54.398 PM sandboxd: ([2356]) XXXXX App (2356) deny file-issue-extension /Applications/iWork '09/Keynote.app

 

9/30/11 3:50:54.399 PM sandboxd: ([2356]) XXXXX App (2356) deny file-write-data /Applications/iWork '09/Keynote.app

 

Can any one be able to give suggestion, How to suppress this warning

 

 

Thanks



Mac OS X (10.7)
  • 1. Re: sandboxing WARNING
    Michael Superczynski Level 5 Level 5 (7,455 points)

    Looks to me like you're trying to write to the Keynote app bundle which is not allowed.

  • 2. Re: sandboxing WARNING
    chetan.s Level 1 Level 1 (0 points)

    No I am not trying to write to Keynote app bundle.

     

    I am simply trying to open keynote file in keynote application using followin code

     

    [[NSWorkspace sharedWorkspace] openFile:[NSString stringWithUTF8String: (char*)destFilePath]];

     

    Thanks

  • 3. Re: sandboxing WARNING
    GBasile Level 1 Level 1 (0 points)

    I have the same problem and receive the same error message in the console.

    When I open Pages/Numbers/KeyNote/TextEdit from a file created in my Sandboxed App

    1) I receive this error

    2)I can not directly save the opened file with these applications because it's blocked: it asks to duplicate the file into a different location inside the user home directory. This is quite annoyning because I need to keep the file in that directory in order to receive File System events.

     

    Do you already solve this problem?