blob: c20a402c890bd97c38a6c41d792ccac8794e95b1 [file] [log] [blame]
yangsu@google.coma8540412011-08-30 14:40:49 +00001
2/*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
bsalomon@google.comf75b84e2011-09-29 14:58:28 +00008
yangsu@google.coma8540412011-08-30 14:40:49 +00009#import <Cocoa/Cocoa.h>
10#include "SkApplication.h"
caryclark@google.com78c6ed02012-01-27 16:52:38 +000011
yangsu@google.coma8540412011-08-30 14:40:49 +000012int main(int argc, char *argv[]) {
13 signal(SIGPIPE, SIG_IGN);
mtkleind157b6a2014-10-21 07:21:36 -070014 /*NSAutoreleasePool* pool = */ [[NSAutoreleasePool alloc] init];
yangsu@google.coma8540412011-08-30 14:40:49 +000015 application_init();
16 int retVal = NSApplicationMain(argc, (const char **)argv);
reed3fc02f12014-10-07 03:59:34 -070017
18#if 0
19 // we don't expect NSApplicationMain to return. See our applicationShouldTerminate handler.
yangsu@google.coma8540412011-08-30 14:40:49 +000020 application_term();
21 [pool release];
reed3fc02f12014-10-07 03:59:34 -070022#endif
yangsu@google.coma8540412011-08-30 14:40:49 +000023 return retVal;
caryclark@google.com78c6ed02012-01-27 16:52:38 +000024}