1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

iOS: Use UIPasteboard string property in SystemClipboard::getTextFromClipboard() to ensure that only NSStrings are retrieved

This commit is contained in:
ed 2021-10-07 11:45:08 +01:00
parent 96612b12d8
commit f2b9ab15d8

View file

@ -658,7 +658,7 @@ void SystemClipboard::copyTextToClipboard (const String& text)
String SystemClipboard::getTextFromClipboard()
{
return nsStringToJuce ([[UIPasteboard generalPasteboard] valueForPasteboardType: @"public.text"]);
return nsStringToJuce ([[UIPasteboard generalPasteboard] string]);
}
//==============================================================================