PDA

View Full Version : File and Folder not created in content folder of app by normal user.




newformac
Jun 10, 2011, 05:24 AM
Hi all,

i am using my app,and create some file and folder in Resources folder in content folder of app.

but the content folder doesn't have write permission ,that's why my File nd Folder not created in content folder of app by normal user.

how can i create file and folder with permission or make the Resources folder to writable.

please help me for this.

thanks in advance.



robbieduncan
Jun 10, 2011, 05:38 AM
You should never, under any circumstances, be writing to any folder within your apps package. This means you should never write to your Resources folder. This is all covered in the developer documentation.

newformac
Jun 10, 2011, 05:44 AM
so please tell me any other alternate for this.

robbieduncan
Jun 10, 2011, 06:02 AM
so please tell me any other alternate for this.

Which documents have you looked in for the answer? Or do you expect us to read the documents for you?

newformac
Jun 10, 2011, 07:03 AM
i mean to say what is the suitable location to create file and folder that is read and writable foe all type of users.

robbieduncan
Jun 10, 2011, 07:15 AM
i mean to say what is the suitable location to create file and folder that is read and writable foe all type of users.

I would ask you again which documents you searched for an answer before posting but I get the feeling you will just evade the question because the answer is "none".

You should read File System Overview (http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFileSystem/BPFileSystem.html%23//apple_ref/doc/uid/10000185-SW1), specifically the first few sections on domains an the Library folder(s)

newformac
Jun 13, 2011, 01:30 AM
Thanks.