Fixed multi-monitorness except with Pivot, which is only half fixed.
[ITKit.git] / ITMacResource.h
1 //
2 //  ITMacResource.h
3 //  ITKit
4 //
5 //  Created by Joseph Spiros on Thu Dec 25 2003.
6 //  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import <Carbon/Carbon.h>
11
12 typedef ResType ITMacResourceType;
13
14 @interface ITMacResource : NSObject {
15     @protected
16     Handle _handle;
17 }
18 + (void)_registerClass:(Class)class forType:(ITMacResourceType)type;
19 + (Class)_classForType:(ITMacResourceType)type;
20
21 + (id)_resourceWithHandle:(Handle)handle;
22 - (id)_initWithHandle:(Handle)handle;
23
24 - (Handle)_handle;
25
26 - (NSData *)data;
27 - (ITMacResourceType)type;
28 - (NSNumber *)id;
29 - (NSString *)name;
30
31 - (Class)nativeRepresentationClass;
32 - (id)nativeRepresentation;
33 @end