• 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: Strange Analyser Warning/Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Analyser Warning/Error


  • Subject: Re: Strange Analyser Warning/Error
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 08 Feb 2016 09:01:18 -0600

On Feb 8, 2016, at 8:31 AM, Dave <email@hidden> wrote:
>
>>
>> In the case where you do not see a warning, you are calling -[NSDictionary objectForKey:] which accepts a nil key value (returning nil).
>
> Ahhhhh, for some reason I thought that is was illegal to pass a nil key to objectForkey:

It is illegal.  Michael is incorrect.  In general, when a method accepts an object pointer argument, it is illegal to pass nil unless it's specifically documented to be legal.

Regards,
Ken


_______________________________________________

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: Strange Analyser Warning/Error
      • From: Steve Sisak <email@hidden>
References: 
 >Strange Analyser Warning/Error (From: Dave <email@hidden>)
 >Re: Strange Analyser Warning/Error (From: Michael Babin <email@hidden>)
 >Re: Strange Analyser Warning/Error (From: Dave <email@hidden>)

  • Prev by Date: Re: Strange Analyser Warning/Error
  • Next by Date: Re: Strange Analyser Warning/Error
  • Previous by thread: Re: Strange Analyser Warning/Error
  • Next by thread: Re: Strange Analyser Warning/Error
  • Index(es):
    • Date
    • Thread