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

  • Home
  • SEARCH
  • 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 3393832
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:05:52+00:00 2026-05-18T04:05:52+00:00

I am currently creating a app in which i want to let the user

  • 0

I am currently creating a app in which i want to let the user backup their files (plist + m4a). I zip the files and change the extension to a custom one (specifically for my app, say “*.MyBackup”). The user can then either export via email or with iTunes file sharing.

I have already read about CFBundleDocumentTypes but didn’t really get what I had to do with them.

The part where i am currently stuck at is how to associate my extension with my app. If the user sends himself an email with the “custom”-zip file he’s supposed to be able to open it with my app.

How do I do this and what are “UTExportedTypeDeclarations”?

  • 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-18T04:05:53+00:00Added an answer on May 18, 2026 at 4:05 am

    I hope it’s okay if I dump in that part of my projects info.plist without much further explanation. I think it’s pretty much self-explanatory.

    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeIconFiles</key>
            <array>
                <string>Icon-iPad-doc320.png</string>
                <string>Icon-iPad-doc.png</string>
            </array>
            <key>CFBundleTypeName</key>
            <string>MyAppName File</string>
            <key>CFBundleTypeRole</key>
            <string>Viewer</string>
            <key>LSHandlerRank</key>
            <string>Owner</string>
            <key>LSItemContentTypes</key>
            <array>
                <!-- my app supports files with my custom extension (see UTExportedTypeDeclarations) -->
                <string>com.myurl.myapp.myextension</string>
                <!-- and csv files. -->
                <string>public.comma-separated-values-text</string>
            </array>
        </dict>
    </array>
    
    
    
    <key>UTExportedTypeDeclarations</key>
    <array>
        <dict>
            <key>UTTypeConformsTo</key>
            <array>
                <string>public.data</string>
            </array>
            <key>UTTypeDescription</key>
            <string>MyAppName File</string>
            <key>UTTypeIdentifier</key>
            <string>com.myurl.myapp.myextension</string>
            <key>UTTypeTagSpecification</key>
            <dict>
                <key>public.filename-extension</key>
                <string>myextension</string>
                <key>public.mime-type</key>
                <string>application/octet-stream</string>
            </dict>
        </dict>
    </array>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently creating a Dashboard app which is created with Ruby on Rails.
I am currently creating an iOS app, which connects to a database and asynchronously
I'm creating an app which has the ability for the user to pin a
i'm creating an app in which i have a uiwebview. I want to load
I’m currently creating an iOS app that uploads files to a server. As multiple
I'm currently creating an iPhone app (Xcode 4.3.1, IOS 5) that could use Bluetooth
I'm currently creating an iPhone app and we need some testing with about 20~30
so here is the problem. I am currently creating an Android app that is
im currently creating a graph for an app, using coreplot and have a problem
I'm currently creating a iOS 5 iPad app where there will be heavy network

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.