Re: NSOpenPanel and the New Folder button
Re: NSOpenPanel and the New Folder button
- Subject: Re: NSOpenPanel and the New Folder button
- From: John Stiles <email@hidden>
- Date: Wed, 10 Sep 2003 17:40:16 -0700
On Wednesday, September 10, 2003, at 05:14 PM, Dustin Voss wrote:
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];
Is this safe?
If this means the program will break under OS X 10.4.x or something, it
would be very difficult to justify. This app absolutely has to work
out-of-the-box.
_______________________________________________
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.