Hi, how can I get the current lline and column of an NSTextView? I only know how to get the total number of lines and glyphs:
[[codeTextView layoutManager] numberOfGlyphs];
And:
unsigned numberOfLines = 0;
unsigned index = 0;
while (index < [[codeTextView string] length])
{
index = NSMaxRange([[codeTextView string] lineRangeForRange:NSMakeRange(index, 0)]);
++numberOfLines;
}