Exposing . directories in the Finder window

Discussion in 'Mac Programming' started by forrie, Sep 5, 2010.

  1. forrie macrumors member


    Mar 6, 2008
    A friend is writing a program that opens a Finder window to facilitate the selection of a configuration file. In this case, one potential location of a file resides in a prefixed "." directory (ie: /Users/rob/.name) which is not exposed in the Finder window -- and there doesn't appear to be a way to force that through the API.

    It seems like a simple enough problem to solve; however, I wonder if someone here might have run into this before and have a solution.

  2. Sydde macrumors 68020


    Aug 17, 2009
    Try using NSWorkspace to tell Finder to open the folder. If the user has access to the folder (read/enter privilege), Finder will display the folder's content in a window even if the folder is hidden.
  3. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset

Share This Page