mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-26 22:03:24 +08:00
finished COSXClipboardTests
This commit is contained in:
@@ -102,7 +102,12 @@ COSXClipboard::add(EFormat format, const CString & data)
|
||||
CString osXData = converter->fromIClipboard(data);
|
||||
CFStringRef flavorType = converter->getOSXFormat();
|
||||
CFDataRef dataRef = CFDataCreate(kCFAllocatorDefault, (UInt8 *)osXData.data(), osXData.size());
|
||||
|
||||
|
||||
// integ tests showed that if you call add(...) twice, then the
|
||||
// second call will actually fail to set clipboard data. calling
|
||||
// empty() seems to solve this problem.
|
||||
empty();
|
||||
|
||||
PasteboardPutItemFlavor(
|
||||
m_pboard,
|
||||
(PasteboardItemID) 0,
|
||||
|
||||
Reference in New Issue
Block a user