Dynamically need this action

Discussion in 'iPhone/iPad Programming' started by arnieterm, Nov 21, 2008.

  1. macrumors regular

    #1
    Is it possible to dynamically create files with our own Iphone application directory like say creating a .txt file in my Iphone app directory?
    Do I have to use NSFileHandle for it or what another api from IPhone SDK is needed for this purpose?
    If we cannot create within our own app directory then at what location can this be done?
    Any idea? :-(
     
  2. Moderator

    robbieduncan

    Staff Member

    #2
    No, any alteration to the application bundle will cause it's signature to change and the iPhone will then refuse to run the app. This is the point of the codesigning...

    Edit: but each app does have a writeable area of filesystem space, outside the app bundle, that you can use as is described in the documentation.
     
  3. macrumors regular

    #3
    Thanks for the reply
    Please provide a sample code/hint that does a write to the writeable area that you are pointing to
    Thanks
     
  4. Moderator

    robbieduncan

    Staff Member

    #4
    It's in the documentation. I suggest you read it. It's covered in the iPhone Application Programming Guide. You should have read and understood this entire document before starting any iPhone application.
     
  5. Moderator

    dejo

    Staff Member

    #5
    Ah, crap. I gotta understand it too!? ;)
     
  6. macrumors regular

    #6
    :cool:
     

Share This Page