1--- a/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm
2+++ b/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm
3@@ -39,7 +39,7 @@
4 #include <IOKit/hidsystem/IOHIDUsageTables.h>
5 #else
6 /* The header was moved here in Mac OS X 10.1 */
7-#include <Kernel/IOKit/hidsystem/IOHIDUsageTables.h>
8+#include <IOKit/hid/IOHIDUsageTables.h>
9 #endif
10 #include <IOKit/hid/IOHIDLib.h>
11 #include <IOKit/hid/IOHIDKeys.h>
12@@ -496,7 +496,7 @@
13 {
14 [[NSAutoreleasePool alloc] init];
15 [NSApplication sharedApplication];
16- [NSApp setDelegate:(id<NSFileManagerDelegate>)[[[AppDelegate alloc] initWithDevice:this] autorelease]];
17+ [NSApp setDelegate:(id<NSApplicationDelegate>)[[[AppDelegate alloc] initWithDevice:this] autorelease]];
18 [NSBundle loadNibNamed:@"MainMenu" owner:[NSApp delegate]];
19 [NSApp finishLaunching];
20 }
21@@ -642,7 +642,7 @@
22 NSOpenGLPFASamples, (NSOpenGLPixelFormatAttribute)CreationParams.AntiAlias,
23 NSOpenGLPFAStencilSize, (NSOpenGLPixelFormatAttribute)(CreationParams.Stencilbuffer?1:0),
24 NSOpenGLPFADoubleBuffer,
25- (NSOpenGLPixelFormatAttribute)nil
26+ (NSOpenGLPixelFormatAttribute)0
27 };
28
29 if (CreationParams.AntiAlias<2)
30@@ -668,7 +668,7 @@
31 {
32 // Third try without Doublebuffer
33 os::Printer::log("No doublebuffering available.", ELL_WARNING);
34- windowattribs[14]=(NSOpenGLPixelFormatAttribute)nil;
35+ windowattribs[14]=(NSOpenGLPixelFormatAttribute)0;
36 }
37
38 format = [[NSOpenGLPixelFormat alloc] initWithAttributes:windowattribs];