MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetText

Method GetText

Source/Engine/Platform/Mac/MacPlatform.cpp:205–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205String MacClipboard::GetText()
206{
207 NSPasteboard* pasteboard = [NSPasteboard generalPasteboard];
208 NSArray* classes = [NSArray arrayWithObject:[NSString class]];
209 NSDictionary* options = [NSDictionary dictionary];
210 if (![pasteboard canReadObjectForClasses:classes options:options])
211 return String::Empty;
212 NSArray* objects = [pasteboard readObjectsForClasses:classes options:options];
213 return AppleUtils::ToString((CFStringRef)[objects objectAtIndex:0]);
214}
215
216Array<byte> MacClipboard::GetRawData()
217{

Callers 15

ListenMethod · 0.45
ConnectMethod · 0.45
GetPluralStringMethod · 0.45
loadAssetMethod · 0.45
DeserializeMethod · 0.45
OnLocalizationChangedMethod · 0.45
GetPluralStringMethod · 0.45
ShowMethod · 0.45
ToStringMethod · 0.45
GDKWindowMethod · 0.45
LoadBinaryModulesMethod · 0.45

Calls 1

ToStringFunction · 0.50

Tested by

no test coverage detected