macOS/iOS API解説

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

目次

insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:

グリフを挿入する時に呼び出されます
-(void)insertGlyphs:(const NSGlyph *)glyphs:
                  length:(unsigned int)length:
                  forStartingGlyphAtIndex:(unsigned int)glyphIndex:
                  characterIndex:(unsigned int)charIndex:

解説

グリフを挿入する時に呼び出されます。

返り値

( void )

なし

引数

( const NSGlyph * )glyphs
( unsigned int )length
( unsigned int )glyphIndex

挿入位置のグリフの順番

( unsigned int )charIndex

挿入位置の文字の順番

フレームワーク

ApplicationKit

クラス

NSGlyphStorage

Instance Methods

使用可能

10.3

参照

例文

//グリフが挿入されたとき、
- (void)insertGlyphs:(const NSGlyph *)glyphs 
        length:(unsigned int)length 
        forStartingGlyphAtIndex:(unsigned int)glyphIndex 
        characterIndex:(unsigned int)charIndex
    {
    NSLog(@"length %u,glyphIndex %u,charIndex %u", length,glyphIndex,charIndex);
	int i;
	for (i = 0; i < length ; i ++)
	{
		NSLog(@"insertGlyphs %u", glyphs[i]);
	}
    [super insertGlyphs: glyphs length:length forStartingGlyphAtIndex:glyphIndex characterIndex:charIndex];
    }