hasMarkedText()
Returns a Boolean value indicating whether the receiver has marked text.
Declaration
func hasMarkedText() -> BoolReturn Value
Discussion
The text view itself may call this method to determine whether there currently is marked text. NSTextView, for example, disables the Edit > Copy menu item when this method returns true.