add a callback to copy to clipboard. (mac osx only)