Creating a folder inside Mac OS App

Posted by Negative Zero on Stack Overflow See other posts from Stack Overflow or by Negative Zero
Published on 2012-04-13T23:15:40Z Indexed on 2012/04/13 23:29 UTC
Read the original article Hit count: 146

Filed under:
|

I want a an app that is "self-contained" (I don't know if i use the right word. "putting the app into trash bin will remove everything" is what I meant). But the app requires some resources to run. I usually put those resources into a folder. I want to move those resources into the App folder ( package contents). Can I do that? Is it a good practice to do that?

When I test the app directly running from Xcode, the App runs fine. But if i run it from finder, the app will say fails to create resources folder because permission denied. I checked the app's folder permission - User(me) has read/write access. I am wondering what is causing this different behavior.

The last option is to use Application Support folder, but I don't want to leave trails when user deletes the app.

Can someone help me out here?

© Stack Overflow or respective owner

Related posts about xcode

Related posts about osx