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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:12:05+00:00 2026-06-16T07:12:05+00:00

I am trying to write an application that can open any folder in the

  • 0

I am trying to write an application that can open any folder in the NSDocument subclass but can’t figure out the right Info.plist settings. It is important that my app should not use bundles, neither folders with a particular file extensions, just be able to open any folder.

What I tried:

  • If I set the document type extension to empty string then the file open panel does not allow any file to be selected
  • If I set the document type extension to * then the file open panel does enable all files but not the folders: folders are opened as in finder
  • If I set the folder extension to the document type extension I can open the folder in the file open dialog as a document (this is what I want) but I restrict my solution to the folders with that extension
  • By setting OSType to “fold”, document type identifier or name to “public.folder” etc. as I read in regarding forums has no visible effect for me.

How can I open any folder in open file dialog?

  • 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-16T07:12:06+00:00Added an answer on June 16, 2026 at 7:12 am

    You probably can’t do this without writing some custom code.

    You need to present an NSOpenPanel manually, like this:

    NSOpenPanel *panel = [NSOpenPanel openPanel];
    [panel setCanChooseFiles:NO];
    [panel setCanChooseDirectories:YES];
    
    [panel beginSheetForDirectory:nil
                             file:nil
                   modalForWindow:[self window]
                    modalDelegate:self
                   didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:)
                      contextInfo:nil];
    

    An open panel presented in this way will let the use choose any directory they wish. You can implement NSOpenPanel‘s delegate methods to validate each folder and en/disable if if you need to.

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

Sidebar

Related Questions

I'm trying to write an application (winforms) that can demonstrate how two oscillating colors
I'm trying to write a C# application that will find a document open in
My friend is trying to write a Windows application that can query an iPhone
I'm trying to write an application that connects to multiple IPs/ports and the problem
I'm trying to write an application that responds whenever the Shift key is pressed,
I am trying to write an application that performs operations on a grid of
I am trying to write an application that adds data to an exsiting spreadsheet
Hi I am trying to write an application that will play morse code. I
I'm trying to write a javascript application that loads data from the openstreetmap API
I'm trying to write a silverlight application that takes in InitParams and then uses

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.