• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOpenPanel and New Folder button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSOpenPanel and New Folder button (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Re: NSOpenPanel and New Folder button
  • Next by Date: D.O. won't pass NSBezierPath ???
  • Previous by thread: Re: NSOpenPanel and New Folder button
  • Next by thread: Mixed Objective-C and C++ for Cocoa App
  • Index(es):
    • Date
    • Thread