Last change
on this file since 8087 was
8083,
checked in by youngk, 14 years ago
|
Cocoa Integration of Orxonox and CPack testing. @Reto: Do NOT merge with kicklib, please.
|
File size:
813 bytes
|
Line | |
---|
1 | // |
---|
2 | // OrxonoxMac.mm |
---|
3 | // Orxonox |
---|
4 | // |
---|
5 | // Created by Kevin Jonas Young on 14.03.11. |
---|
6 | // Copyright 2011 -. All rights reserved. |
---|
7 | // |
---|
8 | |
---|
9 | #import "OrxonoxMac.h" |
---|
10 | |
---|
11 | //#import <Foundation/Foundation.h> |
---|
12 | |
---|
13 | static int argc_s = 0; |
---|
14 | static char** argv_s = 0; |
---|
15 | |
---|
16 | int main(int argc, char** argv) |
---|
17 | { |
---|
18 | //NSLog(@"main"); |
---|
19 | argc_s = argc; |
---|
20 | argv_s = argv; |
---|
21 | |
---|
22 | //NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; |
---|
23 | //[[NSApplication sharedApplication] setDelegate:[[[OrxonoxAppDelegate alloc] init] autorelease]]; |
---|
24 | int retVal = NSApplicationMain(argc, (const char**)argv); |
---|
25 | //[pool drain]; |
---|
26 | |
---|
27 | return retVal; |
---|
28 | } |
---|
29 | |
---|
30 | @implementation OrxonoxAppDelegate |
---|
31 | |
---|
32 | - (void)applicationDidFinishLaunching:(NSNotification *)notification |
---|
33 | { |
---|
34 | NSLog(@"applicationDidFinishLaunching"); |
---|
35 | exit(main_mac(argc_s, argv_s)); |
---|
36 | } |
---|
37 | |
---|
38 | @end |
---|
Note: See
TracBrowser
for help on using the repository browser.