Any camelbones hackers read here?
I need a directory open dialog in my camelbones app. It should be as easy as:
my $panel = NSOpenPanel->openPanel();
NSLog("Panel: $panel\n");
$panel->setCanChooseDirectories(1);
$panel->setCanChooseFiles(0);
my $ret = $panel->runModalForTypes(undef);
But this segfaults. As does runModalForDirectories_file_types().
Any ideas?
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
Re: (Score:2)
Now I can finish my app