NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
File open (Score:2, Informative)
my $panel = NSOpenPanel->openPanel();
$panel->setCanChooseDirectories(1);
$panel->setCanChooseFiles(0);
my $fileTypes = undef;
my $ret = $panel->runModalForTypes($fileTypes);
it doesn't seem to crash. Not sure if it is correct though, because then it isn't letting me select any file types.
I have had a few issues trying to pass nil to methods and I am never sure if undef is the right way.
Reply to This
Re: (Score:2)
Now I can finish my app