init(RTFD:documentAttributes:)
Creates an attributed string by decoding the stream of RTFD commands and data in the specified data object.
Declaration
init?(RTFD data: Data, documentAttributes dict: AutoreleasingUnsafeMutablePointer<NSDictionary?>?)init?(rtfd data: Data, documentAttributes dict: AutoreleasingUnsafeMutablePointer<NSDictionary?>?)Parameters
- data:
The data containing the RTFD content.
- dict:
An in-out dictionary containing document-level attributes. On output, this method updates the dictionary to contain any document-specific keys found in the data. Specify
nilif you don’t want the document attributes.
Return Value
Returns an initialized attributed string object, or nil if the method can’t decode the data.