Initializes a new attributed string object from the specified file wrapper containing an RTFD document.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
- (instancetype)initWithRTFDFileWrapper:(NSFile Wrapper *)wrapper documentAttributes:(NSDictionary<NSAttributed String Document Attribute Key, id> * _Nullable *)dict;
Parameters
wrapper
The
NSFile
containing the RTFD document.Wrapper docAttributes
An in-out dictionary containing document-level attributes described in Document Attributes. May be
NULL
, in which case no document attributes are returned.
Return Value
Returns an initialized object, or nil
if the data can’t be decoded.
Discussion
Also returns by reference in doc
a dictionary containing document-level attributes described in Document Attributes. doc
may be NULL
, in which case no document attributes are returned. Returns an initialized object, or nil
if wrapper
can’t be interpreted as an RTFD document.