ShowingHiddenFilesInAnNSOpenPanel

last edited June 24, 2008 03:13:48 (84.167.14.61)
CocoaDev is sponsored by: Panic: Shockingly good Mac software!

I want to make an NSOpenPanel show hidden files.


So far, it looks like it was possible under 10.2 with [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"AppleShowAllFiles?"] but not under 10.3. All the threads I've found end there. Has anyone figured this one out?

BBEdit shows hidden files/folders but that might be because the capability still exists in Carbon.

-SteveNicholson


I know one method to show hidden files in NSOpenPanel, but this method uses an undocumented api under 10.3 :

[[your-open-panel _navView] setShowsHiddenFiles:YES];

Br.

That's what I was looking for. Thanks!


As far as I can tell, this has been removed in 10.3 in favor of the Cmd-Shift-G thing.

Hold down Cmd-Shift-G in any open panel to show a path field, or just type a / or ~ character.

No, this still works in 10.5 (and 10.4, and 10.3). It has not been removed.