Licensing ITMac under the GNU Lesser General Public License version 2.1.
[ITMac.git] / ITMacResource.h
1 /*
2  *      ITMac
3  *      ITMacResource.h
4  *
5  *      Class that wraps Carbon ResourceManager resources.
6  *
7  *      Copyright (c) 2005 iThink Software
8  *
9  */
10
11 #import <Foundation/Foundation.h>
12 #import <Carbon/Carbon.h>
13
14 typedef ResType ITMacResourceType;
15
16 @interface ITMacResource : NSObject {
17         @protected
18         Handle _handle;
19 }
20
21 + (Class)subclassForType:(ITMacResourceType)type;
22
23 + (NSArray *)supportedResourceTypes;
24 + (BOOL)supportsResourceType:(ITMacResourceType)type;
25
26 + (id)resourceWithHandle:(Handle)handle;
27 - (id)initWithHandle:(Handle)handle;
28
29 - (Handle)handle;
30
31 - (NSData *)data;
32 - (ITMacResourceType)type;
33 - (short)id;
34 - (NSString *)name;
35
36 - (Class)nativeRepresentationClass;
37 - (id)nativeRepresentation;
38
39 @end