mirror of
https://github.com/nickshanks/ResKnife.git
synced 2025-01-03 04:31:27 +00:00
28 lines
870 B
Objective-C
28 lines
870 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
#import <Carbon/Carbon.h> // Actually I only need CarbonCore.framework
|
|
#import "ResourceDataSource.h"
|
|
|
|
@interface ResourceDocument : NSDocument
|
|
{
|
|
IBOutlet NSOutlineView *outlineView;
|
|
IBOutlet ResourceDataSource *dataSource;
|
|
|
|
NSMutableArray *resources;
|
|
BOOL saveToDataFork;
|
|
HFSUniStr255 *otherFork; // name of fork to save to if not using data fork (usually 'RESOURCE_FORK' as returned from FSGetResourceForkName() -- ignored if saveToDataFork is YES )
|
|
}
|
|
|
|
- (void)setupToolbar:(NSWindowController *)controller;
|
|
|
|
- (IBAction)showCreateResourceSheet:(id)sender;
|
|
- (IBAction)openResource:(id)sender;
|
|
- (IBAction)openResourceAsHex:(id)sender;
|
|
- (IBAction)playSound:(id)sender;
|
|
|
|
- (BOOL)readResourceMap:(SInt16)fileRefNum;
|
|
- (BOOL)writeResourceMap:(SInt16)fileRefNum;
|
|
|
|
- (NSOutlineView *)outlineView;
|
|
- (ResourceDataSource *)dataSource;
|
|
|
|
@end |