Re: Seeing nil passed to isEqual:, despite non-null declaration
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