Skip to content

Commit

Permalink
Update resources for Application project so that it includes a window…
Browse files Browse the repository at this point in the history
…, a connection to the window and a slightly improved AppController
  • Loading branch information
gcasa committed Dec 7, 2024
1 parent 4405dcc commit 6c00636
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Modules/Projects/Application/Resources/AppController.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Modules/Projects/Application/Resources/AppController.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ - (BOOL) application: (NSApplication *)application
return NO;
}

- (void) showPrefPanel: (id)sender
- (IBAction) showPrefPanel: (id)sender
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"showPrefPanel:"
);
Outlets = (
"_window"
);
Super = NSObject;
};
Expand Down
Binary file modified Modules/Projects/Application/Resources/Main.gorm/data.info
Binary file not shown.
Binary file modified Modules/Projects/Application/Resources/Main.gorm/objects.gorm
Binary file not shown.

0 comments on commit 6c00636

Please sign in to comment.