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.
This commit is contained in:
Sam Lantinga 2013-06-05 21:31:22 -07:00
parent 47f2eaf415
commit 5a85d1d29a
2 changed files with 0 additions and 3 deletions

View file

@ -82,7 +82,6 @@ struct SDL_SysWMinfo;
#include <Cocoa/Cocoa.h> #include <Cocoa/Cocoa.h>
#else #else
typedef struct _NSWindow NSWindow; typedef struct _NSWindow NSWindow;
typedef struct _NSView NSView;
#endif #endif
#endif #endif
@ -188,7 +187,6 @@ struct SDL_SysWMinfo
struct struct
{ {
NSWindow *window; /* The Cocoa window */ NSWindow *window; /* The Cocoa window */
NSView *view; /* The Cocoa view */
} cocoa; } cocoa;
#endif #endif
#if defined(SDL_VIDEO_DRIVER_UIKIT) #if defined(SDL_VIDEO_DRIVER_UIKIT)

View file

@ -1133,7 +1133,6 @@ Cocoa_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
if (info->version.major <= SDL_MAJOR_VERSION) { if (info->version.major <= SDL_MAJOR_VERSION) {
info->subsystem = SDL_SYSWM_COCOA; info->subsystem = SDL_SYSWM_COCOA;
info->info.cocoa.window = nswindow; info->info.cocoa.window = nswindow;
info->info.cocoa.view = [nswindow contentView];
return SDL_TRUE; return SDL_TRUE;
} else { } else {
SDL_SetError("Application not compiled with SDL %d.%d\n", SDL_SetError("Application not compiled with SDL %d.%d\n",