1
mirror of https://github.com/mpv-player/mpv synced 2025-05-30 15:24:19 +02:00

set nsapp and setup cocoa with NSApplicationLoad

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15738 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde 2005-06-16 16:41:44 +00:00
parent 643db0cf94
commit 6f6ab3ba68

@ -240,8 +240,9 @@ static uint32_t preinit(const char *arg)
} }
} }
NSApplicationLoad();
autoreleasepool = [[NSAutoreleasePool alloc] init]; autoreleasepool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication]; NSApp = [NSApplication sharedApplication];
mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 0, 0) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]]; mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 0, 0) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]];
[mpGLView autorelease]; [mpGLView autorelease];