Fix compilation on macOS 10.12 (#2701)

This commit is contained in:
Tobias Markus 2016-12-23 01:17:31 +01:00 committed by auriamg
parent 8008ec851e
commit 6fb93fa208

View File

@ -719,7 +719,7 @@ bool CIrrDeviceMacOSX::createWindow()
if (!CreationParams.WindowId)
{
[Window center];
[(NSFileManager *)Window setDelegate:[NSApp delegate]];
[(NSFileManager *)Window setDelegate:[(NSFileManager *)NSApp delegate]];
if(CreationParams.DriverType == video::EDT_OPENGL)
[OGLContext setView:[Window contentView]];