Skip to content

NSPathControl subclass that reveals clicked segments in the Finder.

License

Notifications You must be signed in to change notification settings

jwells89/JWSPathControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWSPathControl

Overview

JWSPathControl is a simple subclass of NSPathControl that does one of three things when the user clicks on one of its segments:

  1. If the segment represents a folder, open that folder in the Finder
  2. If the segment represents a file, open its containing folder in the Finder and select that file.
  3. 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.

Usage

In your xib, drag out an NSPathControl, click on the Identity inspector, and set the control's class to JWSPathControl. That's it!

About

NSPathControl subclass that reveals clicked segments in the Finder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published