Pyrogenesis  trunk
Functions
osx_pasteboard.mm File Reference
#import <AppKit/AppKit.h>
#import <AvailabilityMacros.h>
#import <Foundation/Foundation.h>
#import <string>
#import "osx_pasteboard.h"
Include dependency graph for osx_pasteboard.mm:

Functions

bool osx_GetStringFromPasteboard (std::string &out)
 Get a string from the pasteboard. More...
 
bool osx_SendStringToPasteboard (const std::string &string)
 Store a string on the pasteboard. More...
 

Function Documentation

bool osx_GetStringFromPasteboard ( std::string &  out)

Get a string from the pasteboard.

Parameters
[out]outpasteboard string in UTF-8 encoding, if found
Returns
true if string was found on pasteboard and successfully retrieved, false otherwise
bool osx_SendStringToPasteboard ( const std::string &  string)

Store a string on the pasteboard.

Parameters
[in]stringstring to store in UTF-8 encoding
Returns
true if string was successfully sent to pasteboard, false on error