• 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
Trivial NSOpenPanel Question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trivial NSOpenPanel Question...


  • Subject: Trivial NSOpenPanel Question...
  • From: Malcolm Sharman <email@hidden>
  • Date: Fri, 03 Oct 2003 14:22:22 +1000

Hi All

I'm just getting started with cocoa and am working with getting my
NSOpenPanel code to be able to select all files and all folders. But I can't
find a way to make it be able to select all files

...
NSArray *fileTypes = [NSArray arrayWithObject:@"*"];
NSOpenPanel *panel = [NSOpenPanel openPanel];
[panel setAllowsMultipleSelection:YES];
result = [panel runModalForDirectory:NSHomeDirectory() file:nil
types:fileTypes];
...

The problem is the filetypes array I'm sure, but I can't find in the docs
anywhere how to let the user choose any file, can anyone help out?

Malcolm
_______________________________________________
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: Trivial NSOpenPanel Question...
      • From: Buddy Kurz <email@hidden>
  • Prev by Date: Re: Command Key physical key down
  • Next by Date: Re: Trivial NSOpenPanel Question...
  • Previous by thread: Re: best way to test for NSString / NSCFString type of object?
  • Next by thread: Re: Trivial NSOpenPanel Question...
  • Index(es):
    • Date
    • Thread