1 // @@REWRITE(insert c-copyright)
2 // @@REWRITE(delete-start)
3 // Copyright 2008, Google Inc. All rights reserved.
5 // @@REWRITE(delete-end)
6 // MacOSX main() for SDL applications.
9 #import <AppKit/AppKit.h>
11 #import <Carbon/Carbon.h>
16 int main(int argc, char **argv) {
17 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
18 [NSApplication sharedApplication];
20 if (!getenv("NACL_LAUNCHED_FROM_BROWSER")) {
21 ProcessSerialNumber psn;
22 GetCurrentProcess(&psn);
23 TransformProcessType(&psn, kProcessTransformToForegroundApplication);
24 [NSApp activateIgnoringOtherApps:YES];