Last change
on this file since 57761 was 57358, checked in by vboxsync, 9 years ago |
*: scm cleanup run.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
928 bytes
|
Line | |
---|
1 |
|
---|
2 |
|
---|
3 | /*********************************************************************************************************************************
|
---|
4 | * Header Files *
|
---|
5 | *********************************************************************************************************************************/
|
---|
6 | #define NO_SDL_H
|
---|
7 | #import "VBoxSDL.h"
|
---|
8 | #import <Cocoa/Cocoa.h>
|
---|
9 |
|
---|
10 | void *VBoxSDLGetDarwinWindowId(void)
|
---|
11 | {
|
---|
12 | NSView *pView = nil;
|
---|
13 | NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init];
|
---|
14 | {
|
---|
15 | NSApplication *pApp = NSApp;
|
---|
16 | NSWindow *pMainWnd;
|
---|
17 | pMainWnd = [pApp mainWindow];
|
---|
18 | if (!pMainWnd)
|
---|
19 | pMainWnd = pApp->_mainWindow; /* UGLY!! but mApp->_AppFlags._active = 0, so mainWindow() fails. */
|
---|
20 | pView = [pMainWnd contentView];
|
---|
21 | }
|
---|
22 | [pPool release];
|
---|
23 | return pView;
|
---|
24 | }
|
---|
25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.