diff --git a/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm b/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm index 3550ab9ec..73845c9c7 100644 --- a/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm +++ b/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm @@ -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]];