diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index a669d4506..585468430 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -1567,8 +1567,8 @@ int Cocoa_CreateWindowFrom(_THIS, SDL_Window * window, const void *data) { @autoreleasepool { - NSView* nsview = NULL; - NSWindow *nswindow = NULL; + NSView* nsview = nil; + NSWindow *nswindow = nil; if ([(id)data isKindOfClass:[NSWindow class]]) { nswindow = (NSWindow*)data;