Use nil instead of NULL for Objective-C objects
diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index a669d45..5854684 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;