This patch isn't needed because you have the window and can do [nswindow contentView] yourself.
authorSam Lantinga <slouken@libsdl.org>
Wed, 05 Jun 2013 21:31:22 -0700
changeset 7282 df78adc8ba04
parent 7281 cd5516b9263d
child 7283 57c4dad63daf
This patch isn't needed because you have the window and can do [nswindow contentView] yourself. I'm rolling this back so we minimize the things exposed that we have to keep consistent in the API.
include/SDL_syswm.h
src/video/cocoa/SDL_cocoawindow.m
--- a/include/SDL_syswm.h	Wed Jun 05 21:23:59 2013 -0700
+++ b/include/SDL_syswm.h	Wed Jun 05 21:31:22 2013 -0700
@@ -82,7 +82,6 @@
 #include <Cocoa/Cocoa.h>
 #else
 typedef struct _NSWindow NSWindow;
-typedef struct _NSView NSView;
 #endif
 #endif
 
@@ -188,7 +187,6 @@
         struct
         {
             NSWindow *window;           /* The Cocoa window */
-            NSView *view;               /* The Cocoa view */
         } cocoa;
 #endif
 #if defined(SDL_VIDEO_DRIVER_UIKIT)
--- a/src/video/cocoa/SDL_cocoawindow.m	Wed Jun 05 21:23:59 2013 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Wed Jun 05 21:31:22 2013 -0700
@@ -1133,7 +1133,6 @@
     if (info->version.major <= SDL_MAJOR_VERSION) {
         info->subsystem = SDL_SYSWM_COCOA;
         info->info.cocoa.window = nswindow;
-        info->info.cocoa.view = [nswindow contentView];
         return SDL_TRUE;
     } else {
         SDL_SetError("Application not compiled with SDL %d.%d\n",