Dominus wrote:I'm stumpedey stumped. I cannot make it to work... I have no idea what is failing me.
Especially since the text selecting is failing me in the first part already and that shouldn't.
I made sure that C_Clipboard is defined...
Dominus wrote:just to make sure, which source was used for this? (if it's already attached here, just point me at it)
I'll try to find the culprit
Dominus wrote:hmmm, still not working.
Followed the above as close as I could and used the above changed files.
AFAICT the only difference was that I needed to add "--disable-video-x11 --without-x" to SDL's configure (as OS X no longer ships with X11 and the Xquartz download didn't exactly work for building SDL for me). If you didn't need those to build SDL then this is the only difference that might matter.
Can you attach your working binary? Maybe I can figure things out the other way.
NSPasteboard* paste_board;
paste_board = [NSPasteboard generalPasteboard];
..
NSString* pasteboard_string;
pasteboard_string = [paste_board stringForType: NSStringPboardType];
[paste_board declareTypes:[NSArray arrayWithObject:internal_format] owner:nil];
[paste_board setString:[NSString stringWithUTF8String:src_data] forType:NSStringPboardType];
truth5678 wrote:I didn't know that. It explains why some cross-platform libraries excluded the OS.
Perhaps this example is a poor choice for a C/C++ implementation: http://www.alecjacobson.com/weblog/?p=2376.
Users browsing this forum: No registered users and 2 guests