23 #if SDL_VIDEO_DRIVER_COCOA
26 #include "../../events/SDL_clipboardevents_c.h"
34 return NSPasteboardTypeString;
36 return NSStringPboardType;
44 NSAutoreleasePool *pool;
45 NSPasteboard *pasteboard;
48 pool = [[NSAutoreleasePool alloc] init];
50 pasteboard = [NSPasteboard generalPasteboard];
51 data->
clipboard_count = [pasteboard declareTypes:[NSArray arrayWithObject:format] owner:nil];
52 [pasteboard setString:[NSString stringWithUTF8String:text] forType:format];
62 NSAutoreleasePool *pool;
63 NSPasteboard *pasteboard;
68 pool = [[NSAutoreleasePool alloc] init];
70 pasteboard = [NSPasteboard generalPasteboard];
71 available = [pasteboard availableTypeFromArray: [NSArray arrayWithObject:format]];
72 if ([available isEqualToString:format]) {
76 string = [pasteboard stringForType:format];
80 utf8 = [string UTF8String];
107 NSAutoreleasePool *pool;
108 NSPasteboard *pasteboard;
111 pool = [[NSAutoreleasePool alloc] init];
113 pasteboard = [NSPasteboard generalPasteboard];
114 count = [pasteboard changeCount];
NSInteger clipboard_count
char * Cocoa_GetClipboardText(_THIS)
DECLSPEC void SDLCALL SDL_free(void *mem)
static SDL_VideoDevice * _this
int Cocoa_SetClipboardText(_THIS, const char *text)
SDL_bool Cocoa_HasClipboardText(_THIS)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
int SDL_SendClipboardUpdate(void)
DECLSPEC char *SDLCALL SDL_strdup(const char *str)
void Cocoa_CheckClipboardUpdate(struct SDL_VideoData *data)
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum format
GLsizei const GLcharARB ** string