• 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 09:53:25 -0800

> On Jan 13, 2017, at 9:46 AM, Sean McBride <email@hidden> wrote:
>
> Anyone ever seen nil passed to isEqual:?  Is the SDK declaration maybe wrong?

Check the class documentation, not just the header. The parameter is declared as:
	anObject	The object to be compared to the receiver. May be nil, in which case this method returns NO.

So yes, the parameter should be declared as `nullable`.

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

  • Prev by Date: Re: What do NSArrayController, etc. do for me?
  • Next by Date: Re: Seeing nil passed to isEqual:, despite non-null declaration
  • Previous by thread: 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