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).

This commit is contained in:
Pietro Gagliardi 2014-07-20 17:27:56 -04:00
parent 6da105da56
commit 11daae4a63
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#import "_cgo_export.h"
#import <Cocoa/Cocoa.h>
@interface appDelegateClass : NSObject
@interface appDelegateClass : NSObject <NSApplicationDelegate>
@end
@implementation appDelegateClass

View File

@ -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;