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

View file

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

View file

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