2001-10-19 19:41:13 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2002-02-23 03:40:24 +00:00
|
|
|
@class ResourceDocument, Resource;
|
2001-10-19 19:41:13 +00:00
|
|
|
|
|
|
|
@interface ResourceDataSource : NSObject
|
|
|
|
{
|
2002-02-23 03:40:24 +00:00
|
|
|
IBOutlet NSOutlineView *outlineView;
|
|
|
|
IBOutlet NSWindow *window;
|
|
|
|
IBOutlet ResourceDocument *document;
|
2001-10-19 19:41:13 +00:00
|
|
|
|
|
|
|
NSMutableArray *resources;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSWindow *)window;
|
|
|
|
- (NSArray *)resources;
|
|
|
|
- (void)setResources:(NSMutableArray *)newResources;
|
|
|
|
- (void)addResource:(Resource *)resource;
|
2002-02-14 23:24:53 +00:00
|
|
|
- (void)removeResource:(Resource *)resource;
|
2002-11-13 03:35:54 +00:00
|
|
|
- (NSNumber *)uniqueIDForType:(NSString *)type;
|
2001-10-19 19:41:13 +00:00
|
|
|
|
2002-02-23 03:40:24 +00:00
|
|
|
// accessors
|
2003-08-01 22:23:50 +00:00
|
|
|
-(Resource*) resourceOfType: (NSString*)type andID: (NSNumber*)resID;
|
|
|
|
-(Resource*) resourceOfType: (NSString*)type withName: (NSString*)name;
|
|
|
|
-(NSArray*) allResourcesOfType: (NSString*)type;
|
|
|
|
-(NSArray*) allResourceIDsOfType: (NSString*)type;
|
|
|
|
|
2002-02-23 03:40:24 +00:00
|
|
|
|
2001-10-19 19:41:13 +00:00
|
|
|
@end
|