NSOpenPanel and New Folder button
NSOpenPanel and New Folder button
- Subject: NSOpenPanel and New Folder button
- From: Steve Gehrman <email@hidden>
- Date: Wed, 2 May 2001 01:16:45 -0700
I'm using the NSOpenPanel to allow the user to select a destination
folder. It works great, but I need a "New Folder" button. Is there
another panel that allows the user to choose a destination folder that
does include a New Folder button? If not, please add to Cocoa.
steve
// code below allows the user to choose a folder, but no New Folder
button....
NSOpenPanel *op = [NSOpenPanel openPanel];
[op setCanChooseDirectories:YES];
[op setCanChooseFiles:NO];
[op setAllowsMultipleSelection:NO];
[op beginSheetForDirectory:@"" file:@"" types:nil
modalForWindow:[self window] modalDelegate:self
didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:)
contextInfo:nil];