I am on Xcode 10, Objective-C, macOS NOT iOS.
Is it possible to programmatically select a line in NSTextView if the line number is given? Not by changing any of the attributes of the content, just select it as a user would do it by triple clicking.
I know how to get selected text by its range but this time i need to select text programmatically.
I've found selectLine:(id) but it seems to be for an insertion point.
A pointer to the right direction would be great and very much appreciated.