Find rect/position of words in NSTextField
<p>I have a NSTextField with a sentence in it. I want to find a rect (ideally) or position for each word in the sentence to do things in those positions (outside of the NSTextField). </p>

<p>Doing this in a NSTextView/UITextView <a href="https://stackoverflow.com/questions/28330772/nslayoutmanager-boundingrectforglyphrange-off-by-some-points">seems achievable</a> with <code>NSLayoutManager.boundingRectForGlyphRange</code>, but without the NSLayoutManager that NSTextView (and UITextView) have it seems a bit more challenging. </p>

<p>What is the best way for me to find the position of a given word in a NSTextField? </p>