Licensing ITMac under the GNU Lesser General Public License version 2.1.
[ITMac.git] / ITMacResourceFile.h
1 /*
2  *      ITMac
3  *      ITMacResourceFile.h
4  *
5  *      Class that wraps Carbon ResourceManager resource files.
6  *
7  *      Copyright (c) 2005 iThink Software
8  *
9  */
10
11 #import <Foundation/Foundation.h>
12 #import <Carbon/Carbon.h>
13 #import <ITMac/ITMacResource.h>
14
15 @interface ITMacResourceFile : NSObject {
16         FSRef _fileReference;
17         SInt16 _referenceNumber;
18 }
19
20 + (HFSUniStr255)dataForkName;
21 + (HFSUniStr255)resourceForkName;
22
23 - (id)initWithContentsOfFile:(NSString *)path;
24 - (id)initWithContentsOfFile:(NSString *)path fork:(HFSUniStr255)namedFork;
25
26 - (ITMacResource *)resourceOfType:(ITMacResourceType)type withID:(short)idNum;
27 - (ITMacResource *)resourceOfType:(ITMacResourceType)type withName:(NSString *)name;
28
29 @end