2001-10-19 19:41:13 +00:00
# import <Cocoa / Cocoa.h>
# import <Carbon / Carbon.h> // Actually I only need CarbonCore.framework
2002-02-14 23:24:53 +00:00
@ class ResourceDataSource ;
2001-10-19 19:41:13 +00:00
@ 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 )
}
2002-02-06 20:57:56 +00:00
- ( void ) setupToolbar : ( NSWindowController * ) controller ;
2002-02-07 03:45:43 +00:00
- ( IBAction ) showCreateResourceSheet : ( id ) sender ;
- ( IBAction ) openResource : ( id ) sender ;
- ( IBAction ) openResourceAsHex : ( id ) sender ;
- ( IBAction ) playSound : ( id ) sender ;
2002-02-12 04:01:47 +00:00
- ( void ) sound : ( NSSound * ) sound didFinishPlaying : ( BOOL ) finished ;
2002-02-07 03:45:43 +00:00
2002-02-14 23:24:53 +00:00
- ( IBAction ) clear : ( id ) sender ;
- ( void ) resourceNameWillChange : ( NSNotification * ) notification ;
- ( void ) resourceIDWillChange : ( NSNotification * ) notification ;
- ( void ) resourceTypeWillChange : ( NSNotification * ) notification ;
- ( void ) resourceAttributesWillChange : ( NSNotification * ) notification ;
2001-10-19 19:41:13 +00:00
- ( BOOL ) readResourceMap : ( SInt16 ) fileRefNum ;
- ( BOOL ) writeResourceMap : ( SInt16 ) fileRefNum ;
- ( NSOutlineView * ) outlineView ;
- ( ResourceDataSource * ) dataSource ;
2002-02-12 01:24:53 +00:00
- ( NSArray * ) resources ; // return the array as non-mutable
2001-10-19 19:41:13 +00:00
@ end