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