mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 06:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			257 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			257 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#include "osx_utils.h"
 | 
						|
#import <AppKit/NSWindow.h>
 | 
						|
 | 
						|
 | 
						|
namespace SFO {
 | 
						|
 | 
						|
unsigned long WindowContentViewHandle(SDL_SysWMinfo &info)
 | 
						|
{
 | 
						|
    NSWindow *window = info.info.cocoa.window;
 | 
						|
    NSView *view = [window contentView];
 | 
						|
 | 
						|
    return (unsigned long)view;
 | 
						|
}
 | 
						|
 | 
						|
}
 |