More Xcode 7 inconsistency?
More Xcode 7 inconsistency?
- Subject: More Xcode 7 inconsistency?
- From: Graham Cox <email@hidden>
- Date: Wed, 14 Oct 2015 13:33:42 +1100
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@hidden)
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:
This email sent to email@hidden