Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 18, 2011, 10:00:27 AM (14 years ago)
Author:
youngk
Message:

IT WORKS! Orxonox will now run properly with Cocoa - All window issues are fixed. Needs some cleanup, but only little. Rund App from Desktop.@reto: please review my changes. @fabian: watch and learn :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/src/OrxonoxMac.mm

    r8083 r8090  
    99#import "OrxonoxMac.h"
    1010
    11 //#import <Foundation/Foundation.h>
    12 
    1311static int argc_s = 0;
    1412static char** argv_s = 0;
     
    1614int main(int argc, char** argv)
    1715{
    18     //NSLog(@"main");
    1916    argc_s = argc;
    2017    argv_s = argv;
    2118   
    22     //NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    23     //[[NSApplication sharedApplication] setDelegate:[[[OrxonoxAppDelegate alloc] init] autorelease]];
    2419    int retVal = NSApplicationMain(argc, (const char**)argv);
    25     //[pool drain];
    2620   
    2721    return retVal;
     
    3226- (void)applicationDidFinishLaunching:(NSNotification *)notification
    3327{
    34     NSLog(@"applicationDidFinishLaunching");
    3528    exit(main_mac(argc_s, argv_s));
    3629}
Note: See TracChangeset for help on using the changeset viewer.