• 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: How to create a Choose Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a Choose Panel


  • Subject: Re: How to create a Choose Panel
  • From: Massimiliano Bigatti <email@hidden>
  • Date: Wed, 28 Aug 2002 14:32:12 +0200

Thanks Nathan,
I tried using an open panel with type "fold" but it didn't work. I get the same behaviour as:

NSOpenPanel *panel = [NSOpenPanel openPanel];

[panel setAllowsMultipleSelection:NO];
[panel setCanChooseDirectories:YES];
[panel setCanChooseFiles:NO];
[panel setTitle:@"Choose source directory"];
[panel setPrompt:@"Choose"];

which is the code using to get the source directory. The problem is that the first button on the bottom left is "Add to Favourites" and not "Create new Directory" wich is what I get with:

NSSavePanel *panel = [NSSavePanel savePanel];
[panel setTitle:@"Choose destination directory"];
[panel setPrompt:@"Choose"];

the latter doesn't allow to choose a directory. Also setting the file type on the save panel:

[panel setRequiredFileType:@"fold"];

does not work.

Massimiliano Bigatti
http://www.bigatti.it
SUN Certified Enterprise Architect for Java Platform 2 Enterprise Edition Technology

Mercoledl, agosto 28, 2002, alle 10:19 , Nathan Day ha scritto:

Try using an open panel, specify the type as 'fold'.

On Tuesday, August 27, 2002, at 07:00 PM, Massimiliano Bigatti wrote:

I'd like the user be able to choose a directory in where the program will place several files. It is a sort of save to.

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to create a Choose Panel
      • From: Nathan Day <email@hidden>
References: 
 >Re: How to create a Choose Panel (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: Multiple Nibs in 10.2
  • Next by Date: Re: Application Dock menus and target/action
  • Previous by thread: Re: How to create a Choose Panel
  • Next by thread: Re: How to create a Choose Panel
  • Index(es):
    • Date
    • Thread