macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

textTabForGlyphLocation:writingDirection:maxLocation:

テキストタブを返します
-(NSTextTab *)textTabForGlyphLocation:(float)glyphLocation:
        writingDirection:(NSWritingDirection )direction:
        maxLocation:(float)maxLocation :

解説

テキストタブを返します。
【NSWritingDirection 】
●NSWritingDirectionLeftToRight
●NSWritingDirectionRightToLeft
Mac OS X v10.4以降使用不可です。

返り値

( NSTextTab * )

引数

( float )glyphLocation
( NSWritingDirection  )direction
( float )maxLocation 

フレームワーク

ApplicationKit

クラス

NSATSTypesetter

Instance Methods

使用可能

10.3

参照

例文

NSLog(@"textTabForGlyphLocation %@",[[atsTypesetter textTabForGlyphLocation:1.0 writingDirection:NSWritingDirectionLeftToRight maxLocation:3.0] description]);