comparison 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
comparison
equal deleted inserted replaced
3399:f96615051c8c 3400:4ec48602f1db
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #ifndef _SDL_cocoawindow_h 24 #ifndef _SDL_cocoawindow_h
25 #define _SDL_cocoawindow_h 25 #define _SDL_cocoawindow_h
26 26
27 #import <Cocoa/Cocoa.h>
28
27 typedef struct SDL_WindowData SDL_WindowData; 29 typedef struct SDL_WindowData SDL_WindowData;
28 30
29 /* *INDENT-OFF* */ 31 /* *INDENT-OFF* */
30 @interface Cocoa_WindowListener:NSResponder { 32 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
33 @interface Cocoa_WindowListener : NSResponder <NSWindowDelegate> {
34 #else
35 @interface Cocoa_WindowListener : NSResponder {
36 #endif
31 SDL_WindowData *_data; 37 SDL_WindowData *_data;
32 } 38 }
33 39
34 -(void) listen:(SDL_WindowData *) data; 40 -(void) listen:(SDL_WindowData *) data;
35 -(void) close; 41 -(void) close;