2 // NSWorkspace_RBAdditions.h
5 // Created by Rainer Brockerhoff on 10/04/2007.
6 // Copyright 2007 Rainer Brockerhoff. All rights reserved.
9 #ifndef NSWORKSPACE_RBADDITIONS_H
10 #define NSWORKSPACE_RBADDITIONS_H
13 extern NSString
* NSWorkspace_RBfstypename
;
14 extern NSString
* NSWorkspace_RBmntonname
;
15 extern NSString
* NSWorkspace_RBmntfromname
;
16 extern NSString
* NSWorkspace_RBdeviceinfo
;
17 extern NSString
* NSWorkspace_RBimagefilepath
;
18 extern NSString
* NSWorkspace_RBconnectiontype
;
19 extern NSString
* NSWorkspace_RBpartitionscheme
;
20 extern NSString
* NSWorkspace_RBserverURL
;
22 @interface
NSWorkspace (NSWorkspace_RBAdditions
)
24 // This method will return nil if the input path is invalid. Otherwise, the returned NSDictionary may contain
25 // the following keys:
26 //- NSWorkspace_RBfstypename: will always be present.Shows the filesystem type (usually "hfs"), from statfs.
27 //- NSWorkspace_RBmntonname: will always be present. Shows the volume mount point.
28 //- NSWorkspace_RBmntfromname: will always be present. Shows the BSD device path for local volumes; info for
29 // remote volumes depends on the filesystem type.
30 //- NSWorkspace_RBconnectiontype: should always be present for local volumes. Shows the connection type ("SATA", "USB", etc.).
31 //- NSWorkspace_RBpartitionscheme: should always be present for local volumes. Shows the partition scheme.
32 //- NSWorkspace_RBdeviceinfo: should always be present for local volumes. Shows some information about the
33 // physical device; varies widely.
34 //- NSWorkspace_RBimagefilepath: should be present for disk images only. Shows the path of the disk image file.
35 //- NSWorkspace_RBserverURL: should be present for remote volumes only. Shows the server URL.
37 - (NSDictionary
*)propertiesForPath
:(NSString
*)path
;