JWSPathControl
is a simple subclass of NSPathControl that does one of three things when the user clicks on one of its segments:
- If the segment represents a folder, open that folder in the Finder
- If the segment represents a file, open its containing folder in the Finder and select that file.
- If the user was holding down Command while the segment was clicked, open the folder containing the represented item in the Finder and highlight that file.
In your xib, drag out an NSPathControl
, click on the Identity inspector, and set the control's class to JWSPathControl
. That's it!