• 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
Re: Seeing nil passed to isEqual:, despite non-null declaration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seeing nil passed to isEqual:, despite non-null declaration


  • Subject: Re: Seeing nil passed to isEqual:, despite non-null declaration
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 13 Jan 2017 10:51:18 -0800

> On Jan 13, 2017, at 10:43 AM, Ben Kennedy <email@hidden> wrote:
>
> NSObject.h (from which Sean was quoting) begins with NS_ASSUME_NONNULL_BEGIN which, to my understanding, makes everything in the file be non-nullable unless otherwise annotated.

You’re looking at <Foundation/NSObject.h>. But the -isEqual: method is actually declared in <objc/NSObject.h>, which does _not_ have the NS_ASSUME_NONNULL_BEGIN. (I hadn’t noticed that before.)

So Quincey is actually correct — isEqual: has unspecified nullability, and the header is not in error.

—Jens
_______________________________________________

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: Seeing nil passed to isEqual:, despite non-null declaration
      • From: Sean McBride <email@hidden>
References: 
 >Seeing nil passed to isEqual:, despite non-null declaration (From: Sean McBride <email@hidden>)
 >Re: Seeing nil passed to isEqual:, despite non-null declaration (From: Quincey Morris <email@hidden>)
 >Re: Seeing nil passed to isEqual:, despite non-null declaration (From: Ben Kennedy <email@hidden>)

  • Prev by Date: Re: Seeing nil passed to isEqual:, despite non-null declaration
  • Next by Date: Re: Seeing nil passed to isEqual:, despite non-null declaration
  • Previous by thread: Re: Seeing nil passed to isEqual:, despite non-null declaration
  • Next by thread: Re: Seeing nil passed to isEqual:, despite non-null declaration
  • Index(es):
    • Date
    • Thread