Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoaclipboard.m @ 4925:514f811a4887
Removed support for 10.3.9
Fixed building on Mac OS X 10.5
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 01 Dec 2010 12:23:16 -0800 |
parents | 9faebccfefb3 |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
4924:455c0dad84df | 4925:514f811a4887 |
---|---|
25 #include "../../events/SDL_clipboardevents_c.h" | 25 #include "../../events/SDL_clipboardevents_c.h" |
26 | 26 |
27 static NSString * | 27 static NSString * |
28 GetTextFormat(_THIS) | 28 GetTextFormat(_THIS) |
29 { | 29 { |
30 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1060 | 30 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 |
31 return NSStringPboardType; | |
32 #else | |
33 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; | 31 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; |
34 | 32 |
35 if (data->osversion >= 0x1060) { | 33 if (data->osversion >= 0x1060) { |
36 return NSPasteboardTypeString; | 34 return NSPasteboardTypeString; |
37 } else { | 35 } else { |
38 return NSStringPboardType; | 36 return NSStringPboardType; |
39 } | 37 } |
38 #else | |
39 return NSStringPboardType; | |
40 #endif | 40 #endif |
41 } | 41 } |
42 | 42 |
43 int | 43 int |
44 Cocoa_SetClipboardText(_THIS, const char *text) | 44 Cocoa_SetClipboardText(_THIS, const char *text) |