3
그래서 NSPoint 또는 NSRect를 NSTextView에서 특정 문자의 위치와 일치 시키려고합니다. 이것은 내가 그 아주 잘 작동하지 않습니다 (지금까지 무엇을 가지고, 결과는 종류의 예측할 수없는 것 같다.NSPoint/NSRect from NSTextView
이NSRange theTextRange = [[theTextView layoutManager] glyphRangeForCharacterRange:[theTextStorage editedRange] actualCharacterRange:NULL];
NSRect theTextRect = [[theTextView layoutManager] boundingRectForGlyphRange:theTextRange inTextContainer:[theTextView textContainer]];