macOS/iOS API解説

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

目次

NSTextStorage

setWords:

** -(void)setWords:(NSArray *)words: 解説 単語をセットします。 返り値 ( void ) なし 引数 ( NSArray * )words フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文

words

語の配列を返します 解説 語の配列を返します。 返り値 ( NSArray * ) 配列 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 NSLog([[[textStorage words] lastObject ] description]);

setParagraphs:

** -(void)setParagraphs:(NSArray *)paragraphs: 解説 段落をセットします。 返り値 ( void ) なし 引数 ( NSArray * )paragraphs フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文

paragraphs

段落を配列で返します 解説 段落を配列で返します。 返り値 ( NSArray * ) 配列 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 NSLog([[[textStorage paragraphs] lastObject ] description]);

setForegroundColor:

描画色をセットします -(void)setForegroundColor:(NSColor *)color: 解説 描画色をセットします。 返り値 ( void ) なし 引数 ( NSColor * )color フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 [textStor…

foregroundColor

描画色を返します 解説 描画色を返します。 返り値 ( NSColor * ) 配列 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 NSLog([[textStorage foregroundColor] description]);

setFont:

フォントをセットします -(void)setFont:(NSFont *)font: 解説 フォントをセットします。 返り値 ( void ) なし 引数 ( NSFont * )font フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 [textStorage setFont…

font

フォントを返します 解説 フォントを返します。 返り値 ( NSFont * ) 配列 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 NSLog([[textStorage font] description]);

setCharacters:

** -(void)setCharacters:(NSArray *)characters: 解説 文字列をセットします。 返り値 ( void ) なし 引数 ( NSArray * )characters フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文

characters

文字を配列で返します 解説 文字を配列で返します。 返り値 ( NSArray * ) 配列 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 NSLog([[textStorage characters] description]);

setAttributeRuns:

** -(void)setAttributeRuns:(NSArray *)attributeRuns: 解説 属性の並びをセットします。 返り値 ( void ) なし 引数 ( NSArray * )attributeRuns フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文

attributeRuns

属性のまとまりを返します 解説 属性のまとまりを返します。 NSSubTextStorageの配列で返されます。 返り値 ( NSArray * ) 配列 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 NSLog([[textStorage at…

textStorageWillProcessEditing:

テキストストレージを編集しようとする時に呼び出されます -(void)textStorageWillProcessEditing:(NSNotification *)aNotification: 解説 テキストストレージを編集しようとする時に呼び出されます。 返り値 ( void ) なし 引数 ( NSNotification * )aNotif…

textStorageDidProcessEditing:

テキストストレージを編集した時に呼び出されます -(void)textStorageDidProcessEditing:(NSNotification *)aNotification: 解説 テキストストレージを編集した時に呼び出されます。 返り値 ( void ) なし 引数 ( NSNotification * )aNotification 通知 フレ…

setDelegate:

デリゲートをセットします -(void)setDelegate:(id)anObject: 解説 デリゲートをセットします。 返り値 ( void ) なし 引数 ( id )anObject オブジェクト フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 - delega…

removeLayoutManager:

指定したレイアウトマネージャーを取り除きます -(void)removeLayoutManager:(NSLayoutManager *)aLayoutManager: 解説 指定したレイアウトマネージャーを取り除きます。 返り値 ( void ) なし 引数 ( NSLayoutManager * )aLayoutManager レイアウトマネージ…

processEditing

使用しません 解説 編集を開始する時に自動的に呼び出されるので、呼び出す必要はありません。 返り値 ( void ) なし 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 //ありません

layoutManagers

テキストストレージのレイアウトマネージャーを返します 解説 テキストストレージのレイアウトマネージャー(NSLayoutManager)を返します。 返り値 ( NSArray * ) レイアウトマネージャー 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance …

invalidateAttributesInRange:

指定した範囲の属性を無効にします -(void)invalidateAttributesInRange:(NSRange)range: 解説 指定した範囲の属性を無効にします。 返り値 ( void ) なし 引数 ( NSRange )range 範囲 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods…

fixesAttributesLazily

属性をルーズに適用するかを返します 解説 属性をルーズに適用するかを返します。 返り値 ( BOOL ) YES/NO 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 例文 //TextStorageのデリゲート - (void)textStor…

ensureAttributesAreFixedInRange:

指定した範囲の属性が決定されているのを確認します -(void)ensureAttributesAreFixedInRange:(NSRange)range: 解説 指定した範囲の属性が決定されているのを確認します。 返り値 ( void ) なし 引数 ( NSRange )range 範囲 フレームワーク ApplicationKit …

editedRange

編集範囲を返します 解説 編集範囲を返します。 返り値 ( NSRange ) 範囲 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 - changeInLength - editedMask 例文 //TextStorageのデリゲート - (void)textStora…

editedMask

編集マスクを返します 解説 編集マスクを返します。 ● NSTextStorageEditedAttributes 属性を編集している ● NSTextStorageEditedCharacters 文字を編集している 返り値 ( unsigned int ) 整数値 引数 フレームワーク ApplicationKit クラス NSTextStorage I…

edited:range:changeInLength:

調査中 -(void)edited:(unsigned)mask: range:(NSRange)oldRange: changeInLength:(int)lengthChange: 解説 調査中 編集された時に呼び出されます。オーバーライドできます。 【mask】 ● NSTextStorageEditedAttributes 属性の変更、移動、追加 ● NSTextStor…

delegate

デリゲートを返します 解説 デリゲートを返します。 返り値 ( id ) デリゲートオブジェクト 引数 フレームワーク ApplicationKit クラス NSTextStorage Instance Methods 使用可能 10.0 参照 - setDelegate: 例文 - (IBAction)myAction:(id)sender { NSTextS…

changeInLength

編集前の長さと編集後の長さの差を返します 解説 編集前の長さと編集後の長さの差を返します。 2文字追加されれば「2」が返されます。3文字削除されれば「-3」が返されます。 返り値 ( int ) 整数値 引数 フレームワーク ApplicationKit クラス NSTextStorag…

addLayoutManager:

テキストストレージにレイアウトマネージャーを追加します -(void)addLayoutManager:(NSLayoutManager *)aLayoutManager: 解説 テキストストレージにレイアウトマネージャーを追加します。 返り値 ( void ) なし 引数 ( NSLayoutManager * )aLayoutManager …