I’m using this method of NSAttributedString:
- (NSData *)RTFFromRange:(NSRange)aRange
documentAttributes:(NSDictionary<NSString *,
id> * -Nonnull)docAttributes
Parameters
docAttributes
A required dictionary specifying the document attributes. The dictionary
contains values from Document Types and must at least contain
NSDocumentTypeDocumentAttribute. If there are no document-level attributes,
dict can be nil.
So, are <docAttributes> required or not? The use of _Nonnull says they are
required. The description in the documentation says it is required and then
says it’s not.
I’ve been passing nil forever, only now does Xcode 7 complain, presumably
because only now is the _Nonnull attribute added. But either the documentation
or the addition of _Nonnull is wrong.
—Graham
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]