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:
parent
96612b12d8
commit
f2b9ab15d8
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue