• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
More Xcode 7 inconsistency?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: More Xcode 7 inconsistency?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Handling http:// URLs
  • Next by Date: Re: Handling http:// URLs
  • Previous by thread: Re: Handling http:// URLs
  • Next by thread: Re: More Xcode 7 inconsistency?
  • Index(es):
    • Date
    • Thread