diff src/video/cocoa/SDL_cocoawindow.h @ 3400:4ec48602f1db

iPhone interruption patch / SDL 1.3 Eric Wing to Sam I've been sitting on this too long. I need to push. It's untested because of the unrelated crashing bug I've been experiencing. Also have a fix for SIZEOF_VOIDP in the config for both iPhone and Mac.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 17 Oct 2009 07:36:45 +0000
parents 99210400e8b9
children 4b1f10cfd304
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.h	Tue Oct 13 20:17:11 2009 +0000
+++ b/src/video/cocoa/SDL_cocoawindow.h	Sat Oct 17 07:36:45 2009 +0000
@@ -24,10 +24,16 @@
 #ifndef _SDL_cocoawindow_h
 #define _SDL_cocoawindow_h
 
+#import <Cocoa/Cocoa.h>
+
 typedef struct SDL_WindowData SDL_WindowData;
 
 /* *INDENT-OFF* */
-@interface Cocoa_WindowListener:NSResponder {
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
+@interface Cocoa_WindowListener : NSResponder <NSWindowDelegate> {
+#else
+@interface Cocoa_WindowListener : NSResponder {
+#endif		
     SDL_WindowData *_data;
 }