Sets the contents of the receiver from the file at the given URL.
- iOS 7.0–9.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 2.0–2.0Deprecated
The location of the file providing text data.
The option keys for importing the document. For a list of possible values, see “Option keys for importing documents” in
On return, contains the document attributes. For a list of possible values, see “Document Attributes” in
Upon return, if an error occurs, contains an
NSErrorobject that describes the problem. If you are not interested in possible errors, pass in
true if the attributed string is created successfully or
false if it was not.
For RTF formatted files, the contents of the file are appended to the previous string instead of replacing the previous string.