Update resources for Application project so that it includes a window, a connection to the window and a slightly improved AppController

This commit is contained in:
Gregory John Casamento 2024-12-07 14:05:18 -05:00
parent 4405dcc8c4
commit 6c0063600d
5 changed files with 8 additions and 3 deletions

View file

@ -17,22 +17,26 @@
@interface AppController : NSObject
{
IBOutlet NSWindow *_window;
}
// Class methods...
+ (void) initialize;
// Initialization
- (id) init;
- (void) dealloc;
- (void) awakeFromNib;
// Notification methods...
- (void) applicationDidFinishLaunching: (NSNotification *)aNotif;
- (BOOL) applicationShouldTerminate: (id)sender;
- (void) applicationWillTerminate: (NSNotification *)aNotif;
- (BOOL) application: (NSApplication *)application
openFile: (NSString *)fileName;
- (void) showPrefPanel: (id)sender;
// Actions...
- (IBAction) showPrefPanel: (id)sender;
@end

View file

@ -66,7 +66,7 @@
return NO;
}
- (void) showPrefPanel: (id)sender
- (IBAction) showPrefPanel: (id)sender
{
}

View file

@ -5,6 +5,7 @@
"showPrefPanel:"
);
Outlets = (
"_window"
);
Super = NSObject;
};