I want to create an NSOpenPanel
that can select any kind of file, so I do this
NSOpenPanel* panel = [NSOpenPanel openPanel];
if([panel runModalForTypes:nil] == NSOKButton) {
// process files here
}
which lets me select all files except symbolic links.
They're simply not selectable and the obvious setResolvesAliases
does nothing.
What gives?
Update 1: I did some more testing and found that this strangeness
is present in Leopard (10.5.5) but not in Tiger (10.4.8).
Update 2: The code above can select mac aliases (persistent path
data that lives in the resource fork) but not symlinks (files created with ln -s).