Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
osx_pasteboard.h File Reference

C++ interface to Cocoa implementation for pasteboards. More...

Go to the source code of this file.

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...
 

Detailed Description

C++ interface to Cocoa implementation for pasteboards.

Definition in file osx_pasteboard.h.

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

Definition at line 30 of file osx_pasteboard.mm.

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

Definition at line 61 of file osx_pasteboard.mm.