Mac OS X Reference Library Apple Developer Connection spyglass button

Word and Line Calculations in Attributed Strings

The Application Kit’s extensions to NSAttributedString support the typical behavior of text editors in selecting a word on a double-click with the doubleClickAtIndex: method, and finds word breaks with nextWordFromIndex:forward:. It also calculates line breaks with the lineBreakBeforeIndex:withinRange: method.



Last updated: 2009-08-28

Did this document help you? Yes It's good, but... Not helpful...