objective-ccursornscontrol

Get a highlighted text in objective-c


I'm trying to get the StringValue of any text (Out side my application) that has been selected by the cursor. I tried checking on NSControl class,but i didn't find anything useful.


Solution

  • [UIPasteboard generalPasteboard].string