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:
parent
6da105da56
commit
11daae4a63
|
@ -4,7 +4,7 @@
|
||||||
#import "_cgo_export.h"
|
#import "_cgo_export.h"
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
@interface appDelegateClass : NSObject
|
@interface appDelegateClass : NSObject <NSApplicationDelegate>
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation appDelegateClass
|
@implementation appDelegateClass
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#define toNSWindow(x) ((NSWindow *) (x))
|
#define toNSWindow(x) ((NSWindow *) (x))
|
||||||
|
|
||||||
// TODO why do I need the explicit interface specification?
|
|
||||||
@interface goWindowDelegate : NSObject <NSWindowDelegate> {
|
@interface goWindowDelegate : NSObject <NSWindowDelegate> {
|
||||||
@public
|
@public
|
||||||
void *gowin;
|
void *gowin;
|
||||||
|
|
Loading…
Reference in New Issue