Smoke test on macos now compiles

This commit is contained in:
2019-07-11 21:58:59 -07:00
parent 9ee509b101
commit 570c5ab6bf
4 changed files with 39 additions and 6 deletions

View File

@@ -0,0 +1,33 @@
#import "Cocoa/Cocoa.h"
#include "kraken.h"
using namespace kraken;
int main(int argc, const char * argv[])
{
@autoreleasepool {
[NSApplication sharedApplication];
//
// Create a window:
//
// Style flags:
NSUInteger windowStyle = NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask;
NSRect windowRect = NSMakeRect(0, 0, 640, 480);
NSWindow * window = [[NSWindow alloc] initWithContentRect:windowRect
styleMask:windowStyle
backing:NSBackingStoreBuffered
defer:NO];
[window autorelease];
// Window controller:
NSWindowController * windowController = [[NSWindowController alloc] initWithWindow:window];
[windowController autorelease];
[window orderFrontRegardless];
[NSApp run];
}
return 0;
}