From 5d242798e7a343b2012dca16e8d22af957205f93 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 14 Aug 2023 02:02:49 +0200 Subject: Add an NSApplicationDelegate Move the window creation to a separate class, and also allow us to take advantage of `NSApplicationDelegate` protocol methods. --- src/AppDelegate.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/AppDelegate.h (limited to 'src/AppDelegate.h') 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 + +@interface AppDelegate : NSObject { + NSWindow *_window; +} +@end -- cgit v1.2.3