Re: NSOpenPanel and New Folder button
Re: NSOpenPanel and New Folder button
- Subject: Re: NSOpenPanel and New Folder button
- From: "Kevin C." <email@hidden>
- Date: Wed, 2 May 2001 07:16:11 -0700
Steve, are you sure you don't want NSSavePanel? Why do you want a
create a "New Folder" with NSOpenPanel?
Check out NSSavePanel and take a look at
- (void)setAccessoryView:(NSView *)aView
Kevin
On Wednesday, May 2, 2001, at 01:16 AM, Steve Gehrman wrote:
>
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];
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev