diff options
author | Teddy Wing | 2023-08-14 02:02:49 +0200 |
---|---|---|
committer | Teddy Wing | 2023-08-14 02:02:49 +0200 |
commit | 5d242798e7a343b2012dca16e8d22af957205f93 (patch) | |
tree | 6475e355a6def39d3a5172d7e1d39abcb6b78503 /src/AppDelegate.h | |
parent | 70b8d569190c7a54f0dc0e2cd11ead6577caa840 (diff) | |
download | Base-Windowed-Application-5d242798e7a343b2012dca16e8d22af957205f93.tar.bz2 |
Add an NSApplicationDelegate
Move the window creation to a separate class, and also allow us to take
advantage of `NSApplicationDelegate` protocol methods.
Diffstat (limited to 'src/AppDelegate.h')
-rw-r--r-- | src/AppDelegate.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/AppDelegate.h b/src/AppDelegate.h new file mode 100644 index 0000000..eb98fd9 --- /dev/null +++ b/src/AppDelegate.h @@ -0,0 +1,6 @@ +#import <Cocoa/Cocoa.h> + +@interface AppDelegate : NSObject <NSApplicationDelegate> { + NSWindow *_window; +} +@end |