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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:55:23+00:00 2026-05-25T01:55:23+00:00

My Cocoa (Mac) application deals with a file format that doesn’t have a standardised

  • 0

My Cocoa (Mac) application deals with a file format that doesn’t have a standardised file extension and the number one request I receive from my users is to allow opening files with any file extension, not just a closed set of the most common ones I have prepared.

Normally you specify what kind of files you want to open in the Info.plist by declaring the UTIs your classes handle and declaring imported or exported UTIs as needed. You can specify a list of file extensions there that will be associated with those UTIs. Files with extensions not listed there will not be droppable to your application icon in your dock and will be greyed out in the Open File dialog. I can’t seem to find a way to override this behaviour and accept files with any extensions. There are various sites on the Internet that suggest assigning * to the file extension, but that doesn’t seem to be working for me.

There are a number of Cocoa apps in the Mac App Store that can do that, some of them from Apple (e.g. Xcode), some made by third party developers (TextWrangler) so I assume there must be a legit way to achieve this.

TLDR: How to accept files with any extension in Cocoa?

  • 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-25T01:55:24+00:00Added an answer on May 25, 2026 at 1:55 am

    I have this set up in one of my apps. It’s defined with the following value for Info.plist Key ‘CFBundleDocumentTypes’:

        <array>
            <dict>
                <key>CFBundleTypeExtensions</key>
                <array>
                    <string>*</string>
                </array>
                <key>CFBundleTypeMIMETypes</key>
                <array>
                    <string>public.item</string>
                </array>
                <key>CFBundleTypeOSTypes</key>
                <array>
                    <string>****</string>
                </array>
                <key>CFBundleTypeRole</key>
                <string>Viewer</string>
                <key>LSItemContentTypes</key>
                <array>
                    <string>public.item</string>
                </array>
                <key>LSTypeIsPackage</key>
                <false/>
                <key>NSDocumentClass</key>
                <string>MONDocumentClass</string>
            </dict>
        </array>
    

    but you may need to modify that.

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

Sidebar

Related Questions

I have a Cocoa, Document-based Mac OS X application. One feature that I have
I have an Cocoa Application (Mac OS X SDK 10.7) that is performing some
I am learning Cocoa and trying to create an application for Mac that displays
I have a very simple Mac Cocoa app that just has a Web View
I have a graphics editing cocoa app on Mac OSX that produces 32 by
I am writing a Mac Cocoa application that will manipulate database files, which can
I'm developing a Mac OS application and one of the requirements is that this
I have an application written in xcode/cocoa on Mac. A label on the main
im writing a video recorder application for mac with cocoa, and have a huge
I've made a cocoa mac application which needs to check if a serial number/license

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.