macOS/iOS API解説

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

目次

textTabForGlyphLocation:writingDirection:maxLocation:

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

解説

タイプセッターでタブを含む場合に呼び出されます。
テキストタブを返します。

返り値

( NSTextTab * )

テキストタブ

引数

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

フレームワーク

ApplicationKit

クラス

NSTypesetter

Instance Methods

使用可能

10.4

参照

例文

//テキストタブの位置を返します。
- (NSTextTab *)textTabForGlyphLocation:(float)glyphLocation writingDirection:(NSWritingDirection)direction maxLocation:(float)maxLocation;
{	

	NSTextTab *textTab = [super textTabForGlyphLocation:(float)glyphLocation writingDirection:(NSWritingDirection)direction maxLocation:(float)maxLocation];
	NSLog(@"-textTabForGlyphLocation %@",[textTab description]);
	return textTab;
}