#include "osx_utils.h" #import namespace OEngine { namespace Render { unsigned long WindowContentViewHandle(SDL_SysWMinfo &info) { NSWindow *window = info.info.cocoa.window; NSView *view = [window contentView]; return (unsigned long)view; } } }