Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7009223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:50:06+00:00 2026-05-27T21:50:06+00:00

I want to handle files in my iOS App. My app should create a

  • 0

I want to handle files in my iOS App.
My app should create a file with a custom suffix (e.g. file.mysuff) and save it to the device so I’ll be able to copy it using iTunes File Sharing.
Then I want to be able to attach that file to a new mail.
When the receiver opens the document, mail should launch my app and handle that file.

Are there good tutorials on that topic?
I’m still quite new to cocoa / cocoa touch so it should be easy to my.
Is maybe a wrapper out there that I could implement so I just have to code something like

[self [saveMyFile path:[NSURL] contents:[NSString]]]??

Thanks for help!
Greets, J.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:50:07+00:00Added an answer on May 27, 2026 at 9:50 pm

    This is one example of how you can save the file to documents on the iPhone to use later. This stores a dictionary from a list, changes a value and then writes the updates dictionary back to the file specified. Let me know if this is what you were looking for.

    //user document directory and instantiate dictionary
        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        NSString *documentsDirectoryPath = [paths objectAtIndex:0];
        NSString *plistFilePathInDocumentsDirectory = [documentsDirectoryPath stringByAppendingPathComponent:@"YourFile"];
        NSMutableDictionary *yourList= [[NSMutableDictionary alloc] initWithContentsOfFile:plistFilePathInDocumentsDirectory];
    
    //save the new information to the plist in the user documents directory
        [yourList setObject:someObject forKey:someKey];
        [yourList writeToFile:plistFilePathInDocumentsDirectory atomically:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a simple file upload server. The server should be able
I am developing a file explorer app in android. How to handle files with
I want a Servlet to handle requests to files depending on prefix and extension,
I'm using attachment_fu in a rails application to handle file uploads, and i want
I want use a single php file to handle all of my voting requests.
I have an ATL app where I want to handle WM_POWERBROADCAST . I have
I'm trying to create / export an exclusive UTI type for my iOS app
I know how to read/write to local files on iOS using file handles. I
I'm outputting files in C# and want to handle files being saved with the
I have an InputStream that is set up to handle local files, but want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.