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 8581631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:05:59+00:00 2026-06-11T21:05:59+00:00

I am trying to register my app as being able to open text files.

  • 0

I am trying to register my app as being able to open text files. Based on some digging, below is what I tried and while it compiled, it didnt work. When I go into dropbox and try to launch a txt file, I get ‘No installed apps support opening this file’. What do I need to do to make my app show up for any txt file?

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Text File</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>txt</string>
<string>TXT</string>
</array>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.txt</string>
</array>
</dict>
</array>
  • 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-06-11T21:06:01+00:00Added an answer on June 11, 2026 at 9:06 pm

    My app imports TXT files, too.
    Change your Info.plist:

    • Change public.txt in the listing above to com.myapp.txt (or whatever you want)
    • After the last </array> of your listing above add:

      <key>UTExportedTypeDeclarations</key>
      <array>
      <dict>
          <key>UTTypeConformsTo</key>
          <array>
              <string>public.text</string>
          </array>
          <key>UTTypeDescription</key>
          <string>Plain Text Document</string>
          <key>UTTypeIdentifier</key>
          <string>com.myapp.txt</string>
          <key>UTTypeTagSpecification</key>
          <dict>
              <key>public.filename-extension</key>
              <string>txt</string>
              <key>public.mime-type</key>
              <string>text/plain</string>
          </dict>
      </dict>
      </array>
      

    You may replace com.myapp.txt with whatever identifier you want.
    I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm trying to register for the MPMoviePlayerDidExitFullscreenNotification notification in my universal app (iPhone
I'm trying to use coffeekup as my default template app.set 'view engine', 'coffee' app.register
I'm trying to register my castor mapping files with spring and I appear to
I'm trying to register a factory method for creating instances of an open generic
I'm trying to render a dynamic text file (robots.txt) in my Rails (3.0.10) app,
my app always gets a sigabrt error when trying to start up. Being the
Im trying to register my android app with facebook. I've created my page through
I'm trying to create a similar login/register view as the Tumblr's iPhone app. I
I'm trying to just get a VB.net app to be able to execute a
I'm trying to register an app in the APIs Console to test the Google

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.