Any camelbones hackers read here?
I need a directory open dialog in my camelbones app. It should be as easy as:
But this segfaults. As does runModalForDirectories_file_types().
my $panel = NSOpenPanel->openPanel(); NSLog("Panel: $panel\n"); $panel->setCanChooseDirectories(1); $panel->setCanChooseFiles(0); my $ret = $panel->runModalForTypes(undef);
my $panel = NSOpenPanel->openPanel();
$panel->setCanChooseDirectories(1);
$panel->setCanChooseFiles(0);
my $fileTypes = undef;
my $ret = $panel->runModalForTypes($fileTypes);
Re:File open
Matts on 2007-05-30T13:29:08
You rock star!
Now I can finish my app:-)