diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-20 17:27:56 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-20 17:27:56 -0400 |
| commit | 11daae4a6303113fdbeb39bb4784a92be09b813c (patch) | |
| tree | c7f1b9cb868e0046f541f2b1682ce76155a378c5 | |
| parent | 6da105da5649820a6f7c48c04e3188beaef7f0da (diff) | |
Resolved the NSWindowDelegate issue and added an explicit NSApplicationDelegate specifier just to be safe; thanks to Zorg__ in irc.freenode.net/#macdev for explaining (it's an issue with NSApp specifically).
| -rw-r--r-- | redo/uitask_darwin.m | 2 | ||||
| -rw-r--r-- | redo/window_darwin.m | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/redo/uitask_darwin.m b/redo/uitask_darwin.m index 842f991..ed3b9bc 100644 --- a/redo/uitask_darwin.m +++ b/redo/uitask_darwin.m @@ -4,7 +4,7 @@ #import "_cgo_export.h" #import <Cocoa/Cocoa.h> -@interface appDelegateClass : NSObject +@interface appDelegateClass : NSObject <NSApplicationDelegate> @end @implementation appDelegateClass diff --git a/redo/window_darwin.m b/redo/window_darwin.m index ffa6110..4737702 100644 --- a/redo/window_darwin.m +++ b/redo/window_darwin.m @@ -6,7 +6,6 @@ #define toNSWindow(x) ((NSWindow *) (x)) -// TODO why do I need the explicit interface specification? @interface goWindowDelegate : NSObject <NSWindowDelegate> { @public void *gowin; |
