File and Folder not created in content folder of app by normal user.

Discussion in 'Mac Programming' started by newformac, Jun 10, 2011.

  1. macrumors regular

    Joined:
    May 24, 2011
    #1
    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.
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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.
     
  3. thread starter macrumors regular

    Joined:
    May 24, 2011
    #3
    so please tell me any other alternate for this.
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    Which documents have you looked in for the answer? Or do you expect us to read the documents for you?
     
  5. thread starter macrumors regular

    Joined:
    May 24, 2011
    #5
    i mean to say what is the suitable location to create file and folder that is read and writable foe all type of users.
     
  6. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    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, specifically the first few sections on domains an the Library folder(s)
     
  7. thread starter macrumors regular

    Joined:
    May 24, 2011
    #7
    Thanks.
     

Share This Page