ResKnife/Cocoa/Classes/ResourceDataSource.h

75 lines
1.2 KiB
C
Raw Normal View History

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
/*!
@class ResourceDataSource
@pending This class needs to be made KVC compliant.
*/
@interface ResourceDataSource : NSObject <NSOutlineViewDataSource>
2001-10-19 19:41:13 +00:00
{
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;
}
/*!
@method window
*/
2001-10-19 19:41:13 +00:00
- (NSWindow *)window;
/*!
@method resources
*/
2001-10-19 19:41:13 +00:00
- (NSArray *)resources;
/*!
@method setResources:
*/
2001-10-19 19:41:13 +00:00
- (void)setResources:(NSMutableArray *)newResources;
/*!
@method addResource:
*/
2001-10-19 19:41:13 +00:00
- (void)addResource:(Resource *)resource;
/*!
@method removeResource:
*/
- (void)removeResource:(Resource *)resource;
/*!
@method uniqueIDForType:
*/
- (NSNumber *)uniqueIDForType:(NSString *)type;
2001-10-19 19:41:13 +00:00
/*!
@method defaultIDForType:
*/
- (NSNumber *)defaultIDForType:(NSString *)type;
/*!
@method resourceOfType:andID:
*/
- (Resource *)resourceOfType:(NSString *)type andID:(NSNumber *)resID;
/*!
@method resourceOfType:withName:
*/
- (Resource *)resourceOfType:(NSString *)type withName:(NSString *)name;
/*!
@method allResourcesOfType:
*/
- (NSArray *)allResourcesOfType:(NSString *)type;
/*!
@method allResourceIDsOfType:
*/
- (NSArray *)allResourceIDsOfType:(NSString *)type;
2002-02-23 03:40:24 +00:00
2001-10-19 19:41:13 +00:00
@end