-
Notifications
You must be signed in to change notification settings - Fork 11
/
NDResourceFork+OtherSorces.h
executable file
·40 lines (35 loc) · 2.3 KB
/
NDResourceFork+OtherSorces.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*!
@header NDResourceFork+OtherSorces
@abstract Declares the category <tt>NDResourceFork (OtherSorces)</tt>
@discussion <tt>NDResourceFork+OtherSorces</tt> is a category of <tt>NDResourceFork</tt> which adds methods that can retireve resource fork data by non resource fork means.
*/
#import <Cocoa/Cocoa.h>
#import "NDResourceFork.h"
/*!
@header NDResourceFork(OtherSorces)
@abstract Defines the interface for a category of the class <tt>NDResourceFork</tt>.
@discussion Defines method for <tt>NDResourceFork</tt> for retrieving resource type data from non resource fork sources, at lest not directly. The category <tt>OtherSorces</tt> can be omitted from your project if the additonal functionalty is not desired.
*/
/*!
@category NDResourceFork(OtherSorces)
@abstract A category of the class <tt>NDResourceFork</tt>.
@discussion The category <tt>OtherSorces</tt> adds method to <tt>NDResourceFork</tt> for retrieving resource type data from non resource fork sources, at lest not directly. This category can be omitted from your project if the additonal functionalty is not desired.
*/
@interface NDResourceFork (OtherSorces)
/*!
@method iconFamilyDataForURL:
@abstract Gets a files or directories Icon Family Data.
@discussion <tt>iconFamilyDataForURL:</tt> returns the Icon Family Data for any file or directory. The file does not have to have an actual resource fork with the Icon Family Data in it, neither does a directory have to have an Icon/r file with the Icon Family Data.
@param URL The file url for which the Icon Family Data is required.
@result A <tt>NSData</tt> contain the Icon Family Data, returns <tt>nil</tt> if <tt>iconFamilyDataForURL:</tt> failed.
*/
+ (NSData *)iconFamilyDataForURL:(NSURL *)URL;
/*!
@method iconFamilyDataForFile:
@abstract Gets a files or directories Icon Family Data.
@discussion <tt>iconFamilyDataForURL:</tt> returns the Icon Family Data for any file or directory. The file does not have to have an actual resource fork with the Icon Family Data in it, neither does a directory have to have an Icon/r file with the Icon Family Data.
@param path The path for which the Icon Family Data is required.
@result A <tt>NSData</tt> contain the Icon Family Data, returns <tt>nil</tt> if <tt>iconFamilyDataForURL:</tt> failed.
*/
+ (NSData *)iconFamilyDataForFile:(NSString *)path;
@end