src/video/cocoa/SDL_cocoaclipboard.m
changeset 10176 3115d38204aa
parent 9998 f67cf37e9cd4
child 10177 faa36f2de933
     1.1 --- a/src/video/cocoa/SDL_cocoaclipboard.m	Fri May 20 22:18:15 2016 +0200
     1.2 +++ b/src/video/cocoa/SDL_cocoaclipboard.m	Sat May 21 00:20:52 2016 -0300
     1.3 @@ -25,23 +25,13 @@
     1.4  #include "SDL_cocoavideo.h"
     1.5  #include "../../events/SDL_clipboardevents_c.h"
     1.6  
     1.7 -static NSString *
     1.8 -GetTextFormat(_THIS)
     1.9 -{
    1.10 -    if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5) {
    1.11 -        return NSPasteboardTypeString;
    1.12 -    } else {
    1.13 -        return NSStringPboardType;
    1.14 -    }
    1.15 -}
    1.16 -
    1.17  int
    1.18  Cocoa_SetClipboardText(_THIS, const char *text)
    1.19  { @autoreleasepool
    1.20  {
    1.21      SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
    1.22      NSPasteboard *pasteboard;
    1.23 -    NSString *format = GetTextFormat(_this);
    1.24 +    NSString *format = NSPasteboardTypeString;
    1.25  
    1.26      pasteboard = [NSPasteboard generalPasteboard];
    1.27      data->clipboard_count = [pasteboard declareTypes:[NSArray arrayWithObject:format] owner:nil];
    1.28 @@ -55,7 +45,7 @@
    1.29  { @autoreleasepool
    1.30  {
    1.31      NSPasteboard *pasteboard;
    1.32 -    NSString *format = GetTextFormat(_this);
    1.33 +    NSString *format = NSPasteboardTypeString;
    1.34      NSString *available;
    1.35      char *text;
    1.36