• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOpenPanel and the New Folder button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel and the New Folder button


  • Subject: Re: NSOpenPanel and the New Folder button
  • From: Dustin Voss <email@hidden>
  • Date: Wed, 10 Sep 2003 17:14:19 -0700

On Tuesday, September 9, 2003, at 05:17 PM, John Stiles wrote:

I am making an NSOpenPanel which can only select folders:

NSOpenPanel *panel = [NSOpenPanel openPanel];
[panel setCanChooseFiles:NO];
[panel setCanChooseDirectories:YES];
[panel setResolvesAliases:YES];
[panel setAllowsMultipleSelection:NO];
[panel setPrompt:@"Choose"];

int result = [panel runModalForDirectory:myDirectory file:NULL types:NULL];
I want the user to have the ability to create a folder from this panel. I think an NSSavePanel can do this, but I don't know how to convince an NSOpenPanel to do so.

What can I do? Thanks.

An undocumented method: [panel _setIncludeNewFolderButton:YES];
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSOpenPanel and the New Folder button
      • From: John Stiles <email@hidden>
References: 
 >NSOpenPanel and the New Folder button (From: John Stiles <email@hidden>)

  • Prev by Date: Re: How do you know a file is an Application?
  • Next by Date: Re: Async output ready notification for file descriptors
  • Previous by thread: NSOpenPanel and the New Folder button
  • Next by thread: Re: NSOpenPanel and the New Folder button
  • Index(es):
    • Date
    • Thread