Re: NSOpenPanel and the New Folder button
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.