A display of a file system path or virtual path information.
- macOS 10.5+
NSPath class uses
NSPath to implement its user interface.
NSPath provides cover methods for most
NSPath methods—the cover method simply invokes the corresponding cell method. See also
NSPath, which represents individual components of the path, and two associated protocols:
NSPath has three styles represented by the
NSPath enumeration constants
NSPath. The represented path can be a file system path or any other type of path leading through a sequence of nodes or components, as defined by the programmer.
NSPath automatically supports drag and drop, which can be further customized via delegate methods. To accept drag and drop,
NSURLPboard. When the URL value in the
NSPath object changes because of an automatic drag and drop operation or the user selecting a new path via the open panel, the action is sent. In OS X v10.5 the value returned by
nil, in macOS 10.6 and later,
clicked returns the clicked cell.