Word and Line Calculations in Attributed Strings

OSXDEV

Jump to: navigation, 찾기

Application의 NSAttributedString 확장은 텍스트 에디터의 전형적인 행동인 더블 클릭시 단어 선택 기능을 doubleClickAtindex: 로 지원하며, nextWordFromIndex:forward 메소드로 워드 브레이크를 찾습니다. 또한, 라인 브레이크를 lineBreakBeforeIndex:withinRange: 메소드로 계산합니다.


< Previous Page Next Page >



번역자 사용자:Idiel
원본문서링크 http://developer.apple.com/documentation/Cocoa/Conceptual/AttributedStrings/Tasks/WordCalcAttrStrings.html (Last Updated - 2007-06-04)