Hi Community,
Just as the question poses, I am trying to figure out how to “get” the selection of an NSTextView. I am using the Text View like a Text Field, and I need to know what the user is selecting to use it in the app. Thank you so much!
The second line of the code I showed can be simplified to just " log tv’s |string|()'s substringWithRange_(theRange)" because NSText, which is the superclass of NSTextView, also has a string() method.