mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-12-22 02:29:56 +00:00
24 lines
520 B
Objective-C
24 lines
520 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
|
|
@class ResourceDocument, Resource;
|
|
|
|
@interface ResourceDataSource : NSObject
|
|
{
|
|
IBOutlet NSOutlineView *outlineView;
|
|
IBOutlet NSWindow *window;
|
|
IBOutlet ResourceDocument *document;
|
|
|
|
NSMutableArray *resources;
|
|
}
|
|
|
|
- (NSWindow *)window;
|
|
- (NSArray *)resources;
|
|
- (void)setResources:(NSMutableArray *)newResources;
|
|
- (void)addResource:(Resource *)resource;
|
|
- (void)removeResource:(Resource *)resource;
|
|
|
|
// accessors
|
|
- (Resource *)resourceNamed:(NSString *)name ofType:(NSString *)type;
|
|
|
|
@end
|