NSOpenPanel and the New Folder button
NSOpenPanel and the New Folder button
- Subject: NSOpenPanel and the New Folder button
- From: John Stiles <email@hidden>
- Date: Tue, 9 Sep 2003 17:17:28 -0700
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.
_______________________________________________
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.