Trivial NSOpenPanel Question...
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.