macOS/iOS API解説

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

目次

NSLayoutManager

textContainers

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

textContainerForGlyphAtIndex:effectiveRange:

指定した位置のグリフが配置されるテキストコンテナを返します -(NSTextContainer *)textContainerForGlyphAtIndex:(unsigned)glyphIndex: effectiveRange:(NSRange *)effectiveGlyphRange: 解説 指定した位置のグリフが配置されるテキストコンテナを返しま…

textContainerChangedGeometry:

テキストコンテナが矩形ではない時に使用します -(void)textContainerChangedGeometry:(NSTextContainer *)aTextContainer: 解説 他のメソッドから自動的に呼び出されるので、呼び出す必要はありません。 サブクラスでオーバーライドします。テキストコンテ…

temporaryAttributesAtCharacterIndex:effectiveRange:

指定した文字の一時的な文字属性の辞書を返します -(NSDictionary *)temporaryAttributesAtCharacterIndex:(unsigned)charIndex: effectiveRange:(NSRangePointer)effectiveCharRange: 解説 指定した文字の一時的な文字属性の辞書を返します。effectiveCharR…

substituteFontForFont:

指定したフォントが使用できない時、代用するフォントを返します -(NSFont *)substituteFontForFont:(NSFont *)originalFont: 解説 指定したフォントが使用できない時、代用するフォントを返します。 対応するスクリーンフォントがない場合、使用できないと…

showsInvisibleCharacters

非表示文字を表示するかを返します 解説 非表示文字を表示するかを返します。 返り値 ( BOOL ) YES/NO 引数 フレームワーク ApplicationKit クラス NSLayoutManager Instance Methods 使用可能 10.0 参照 - showsControlCharacters - setShowsInvisibleChara…

showsControlCharacters

コントロール文字を表示するかを返します 解説 コントロール文字を表示するかを返します。 返り値 ( BOOL ) YES/NO 引数 フレームワーク ApplicationKit クラス NSLayoutManager Instance Methods 使用可能 10.0 参照 - hyphenationFactor 例文 #import "MyO…

showPackedGlyphs:length:glyphRange:atPoint:font:color:printingAdjustment:

連続したグリフを表示します -(void)showPackedGlyphs:(char *)glyphs: length:(unsigned)glyphLen: glyphRange:(NSRange)glyphRange: atPoint:(NSPoint)point: font:(NSFont *)font: color:(NSColor *)color: printingAdjustment:(NSSize)printingAdjustmen…

showAttachmentCell:inRect:characterIndex:

調査中 -(void)showAttachmentCell:(NSCell *)cell: inRect:(NSRect)rect: characterIndex:(unsigned)attachmentIndex: 解説 調査中 アタッチメントセルをセットします。 返り値 ( void ) なし 引数 ( NSCell * )cell セル ( NSRect )rect 矩形 ( unsigned )…

setUsesScreenFonts:

スクリーンフォントを使うかセットします -(void)setUsesScreenFonts:(BOOL)flag: 解説 スクリーンフォントを使うかセットします。 返り値 ( void ) なし 引数 ( BOOL )flag YES/NO フレームワーク ApplicationKit クラス NSLayoutManager Instance Methods …

setTypesetter:

タイプセッターをセットします -(void)setTypesetter:(NSTypesetter *)typesetter: 解説 タイプセッターをセットします。 返り値 ( void ) なし 引数 ( NSTypesetter * )typesetter フレームワーク ApplicationKit クラス NSLayoutManager Instance Methods …

setTextStorage:

レイアウトマネージャーにテキストストレージをセットします -(void)setTextStorage:(NSTextStorage *)textStorage: 解説 レイアウトマネージャーにテキストストレージをセットします。自動的に呼び出されるので直接呼び出す必要はありません。サブクラスで…

setTextContainer:forGlyphRange:

使用しません -(void)setTextContainer:(NSTextContainer *)aTextContainer: forGlyphRange:(NSRange)glyphRange: 解説 システムで使われるので直接呼び出しません。 返り値 ( void ) なし 引数 ( NSTextContainer * )aTextContainer ( NSRange )glyphRange …

setTemporaryAttributes:forCharacterRange:

一時的な文字属性をセットします -(void)setTemporaryAttributes:(NSDictionary *)attrs: forCharacterRange:(NSRange)charRange: 解説 一時的な文字属性をセットします。 【attrsの要素】文字属性名の辞書の要素 ● NSForegroundColorAttributeName 描画カラ…

setShowsInvisibleCharacters:

非表示文字を見えるようにするかをセットします -(void)setShowsInvisibleCharacters:(BOOL)flag: 解説 非表示文字を見えるようにするかをセットします。 返り値 ( void ) なし 引数 ( BOOL )flag YES/NO フレームワーク ApplicationKit クラス NSLayoutMana…

setShowsControlCharacters:

コントロール文字を表示するかをセットします -(void)setShowsControlCharacters:(BOOL)flag: 解説 コントロール文字を表示するかをセットします。 返り値 ( void ) なし 引数 ( BOOL )flag YES/NO フレームワーク ApplicationKit クラス NSLayoutManager In…

setNotShownAttribute:forGlyphAtIndex:

直接呼び出しません -(void)setNotShownAttribute:(BOOL)flag: forGlyphAtIndex:(unsigned)glyphIndex: 解説 直接呼び出しません。 返り値 ( void ) なし 引数 ( BOOL )flag YES/NO ( unsigned )glyphIndex フレームワーク ApplicationKit クラス NSLayoutMa…

setLocation:forStartOfGlyphRange:

直接呼び出しません -(void)setLocation:(NSPoint)aPoint: forStartOfGlyphRange:(NSRange)glyphRange: 解説 グリフ範囲の場所をセットします。 システムによって使用されるので、直接呼び出しません。 返り値 ( void ) なし 引数 ( NSPoint )aPoint 位置 ( …

setLineFragmentRect:forGlyphRange:usedRect:

行分割をセットします -(void)setLineFragmentRect:(NSRect)fragmentRect: forGlyphRange:(NSRange)glyphRange: usedRect:(NSRect)usedRect: 解説 行分割をセットします。 返り値 ( void ) なし 引数 ( NSRect )fragmentRect ラインフラグメント矩形 ( NSRan…

setIntAttribute:value:forGlyphAtIndex:

カスタム属性値をセットします -(void)setIntAttribute:(int)attributeTag: value:(int)anInt: forGlyphAtIndex:(unsigned)glyphIndex: 解説 カスタム属性値をセットします。 【attributeTag】属性タグ 0以上のタグは予約済み、負の値を定義することはできま…

setHyphenationFactor:

ハイフン値をセットします -(void)setHyphenationFactor:(float)factor: 解説 ハイフン値をセットします。 返り値 ( void ) なし 引数 ( float )factor 0.0-1.0 フレームワーク ApplicationKit クラス NSLayoutManager Instance Methods 使用可能 10.0 参照 …

setExtraLineFragmentRect:usedRect:textContainer:

直接呼び出しません -(void)setExtraLineFragmentRect:(NSRect)aRect: usedRect:(NSRect)usedRect: textContainer:(NSTextContainer *)aTextContainer: 解説 テキストの本文で空の最後の行を表示するために矩形をセットします。システムによって使用されるの…

setDrawsOutsideLineFragment:forGlyphAtIndex:

直接呼び出しません -(void)setDrawsOutsideLineFragment:(BOOL)flag: forGlyphAtIndex:(unsigned)glyphIndex: 解説 システムで使用されるので直接呼び出しません。 返り値 ( void ) なし 引数 ( BOOL )flag YES/NO ( unsigned )glyphIndex フレームワーク A…

setDelegate:

レイアウトマネージャーのデリゲートをセットします -(void)setDelegate:(id)anObject: 解説 レイアウトマネージャーのデリゲートをセットします。 返り値 ( void ) なし 引数 ( id )anObject フレームワーク ApplicationKit クラス NSLayoutManager Instanc…

setCharacterIndex:forGlyphAtIndex:

使用しません -(void)setCharacterIndex:(unsigned)charIndex: forGlyphAtIndex:(unsigned)glyphIndex: 解説 文字インデックスとグリフインデックスでセットします。 直接呼び出しません。 返り値 ( void ) なし 引数 ( unsigned )charIndex 文字のインデッ…

setBackgroundLayoutEnabled:

バックグラウンドレイアウトは有効かをセットします -(void)setBackgroundLayoutEnabled:(BOOL)flag: 解説 バックグラウンドレイアウトは有効かをセットします。 返り値 ( void ) なし 引数 ( BOOL )flag YES/NO フレームワーク ApplicationKit クラス NSLay…

setAttachmentSize:forGlyphRange:

テキストアタッチメントのサイズをセットします -(void)setAttachmentSize:(NSSize)attachmentSize: forGlyphRange:(NSRange)glyphRange: 解説 テキストアタッチメントのサイズをセットします。 返り値 ( void ) なし 引数 ( NSSize )attachmentSize アタッ…

rulerMarkersForTextView:paragraphStyle:ruler:

調査中 -(NSArray *)rulerMarkersForTextView:(NSTextView *)aTextView: paragraphStyle:(NSParagraphStyle *)paraStyle: ruler:(NSRulerView *)aRulerView: 解説 調査中 このレイアウトマネージャーを使っているNSTextViewによって呼び出されます。 オーバ…

rulerAccessoryViewForTextView:paragraphStyle:ruler:enabled:

調査中 -(NSView *)rulerAccessoryViewForTextView:(NSTextView *)aTextView: paragraphStyle:(NSParagraphStyle *)paraStyle: ruler:(NSRulerView *)aRulerView: enabled:(BOOL)flag: 解説 調査中 テキストビューの定規ビューのアクセサリービューを返しま…

replaceTextStorage:

レイアウトマネージャーのテキストストレージを別のテキストストレージと入れ替えます -(void)replaceTextStorage:(NSTextStorage *)newTextStorage: 解説 レイアウトマネージャーのテキストストレージを別のテキストストレージ(newTextStorage)と入れ替えま…