#import #import #import "Structs.h" #import "DataSource.h" #import "ResKnifePluginProtocol.h" #import "ResKnifeResourceProtocol.h" #define localCenter [NSNotificationCenter defaultCenter] @interface NovaWindowController : NSWindowController { id resource; NSUndoManager *undoManager; // NSNotificationCenter *localCenter; NSBundle *plugBundle; DataSource *descriptionDataSource; DataSource *governmentDataSource; DataSource *pictureDataSource; DataSource *planetDataSource; DataSource *shipDataSource; DataSource *soundDataSource; DataSource *spinDataSource; } - (void)setResource:(id )newResource; - (void)setUndoManager:(NSUndoManager *)newUndoManager; - (IBAction)toggleResID:(id)sender; - (void)resourceNameDidChange:(NSNotification *)notification; - (void)saveSheetDidClose:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; - (void)invalidValuesSheetDidClose:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; @end @interface NovaWindowController (AbstractNovaMethods) - (NSDictionary *)validateValues; - (void)saveResource; @end