Instance Method インスタンスメソッド

RTFDFileWrapperFromRange:documentAttributes:

Returns a file wrapper object that contains an RTFD document corresponding to the characters and attributes within the specified range. 指定された範囲内の文字および属性いくらかに一致するRTFD書類を含んでいるファイルラッパーオブジェクトを返します。

Declaration 宣言

- (NSFileWrapper *)RTFDFileWrapperFromRange:(NSRange)range 
                         documentAttributes:(NSDictionary<NSAttributedStringDocumentAttributeKey, id> *)dict;

Parameters パラメータ

aRange

The range. その範囲。

docAttributes

A required dictionary specifying the document attributes. The dictionary contains values from Document Types and must at least contain NSDocumentTypeDocumentAttribute. 書類属性を指定している必須辞書。辞書はDocument Typesからの値を含んでいます、そして少なくともNSDocumentTypeDocumentAttributeを含んでいなければなりません。

Return Value 戻り値

A file wrapper containing the RTFD data. RTFDデータを含んでいるファイルラッパー。

Discussion 議論

The file wrapper also includes the document-level attributes in docAttributes, as explained in RTF Files and Attributed Strings. ファイルラッパーはまた、docAttributesの中の書類レベルの属性を含みます、RTF Files and Attributed Stringsで説明されるように。

Raises an NSRangeException if any part of aRange lies beyond the end of the receiver’s characters. NSRangeExceptionを引き起こします、もしaRangeの何らかの部分がレシーバの持つ文字の終わりを越えているならば。

You can save the file wrapper using the writeToFile:atomically:updateFilenames: method of NSFileWrapper. あなたは、ファイルラッパーの保存をNSFileWrapperwriteToFile:atomically:updateFilenames:メソッドを使って行えます。

See Also 参照

Generating Data データの生成