macOS/iOS API解説

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

目次

NSAttributedStringクラス Application Kit Additions

INDEX>AppKit>NSAttributedString Application Kit Additions

**

継承 NSObject
準拠 NSObject (NSObject)
フレームワーク /System/Library/Frameworks/SpriteKit.framework
使用可能 OS X 0.0以降
定義

概要

言語ユニットを計算

URLAtIndex:effectiveRange:
-doubleClickAtIndex
-lineBreakBeforeIndex:withinRange
-lineBreakByHyphenatingBeforeIndex:withinRange
-nextWordFromIndex:forward

データの生成

dataFromRange:documentAttributes:error:
fileWrapperFromRange:documentAttributes:error:
docFormatFromRange:documentAttributes:
RTFFromRange:documentAttributes:
RTFDFromRange:documentAttributes:
RTFDFileWrapperFromRange:documentAttributes:

文字列の描画

drawAtPoint
drawInRect:
drawWithRect:options:
size

文字のレンダリングバウンディング範囲を得る

boundingRectWithSize:options:

文字データソースのテスト

textTypes
textUnfilteredTypes

非推奨になったメソッドたち

textFileTypes (OS X v10.5)
textUnfilteredFileTypes (OS X v10.5)
textPasteboardTypes (OS X v10.5)
textUnfilteredPasteboardTypes (OS X v10.5)

定数

Standard Attributes
Underlining Styles
Underlining Patterns
Underline Masks
Glyph Info Attribute
Character Shape Attribute
Document Types
Document Attributes
Attributes for generating HTML

Option keys for importing documents

NSSpellingStateAttributeName
NSTextLayoutSectionsAttribute
NSLayoutOrientationSectionsAttribute
NSSpellingStateAttributeName Flags
NSUnderlineStrikethroughMask

定数

参照