• 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: NSNull and @""
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNull and @""


  • Subject: Re: NSNull and @""
  • From: Seth Willits <email@hidden>
  • Date: Sat, 11 Oct 2008 10:57:37 -0700

On Oct 11, 2008, at 4:51 AM, Stelian Iancu wrote:

Hmm, that's weird. In some official iPhone examples from Apple, they do exactly that: they put nil as the last element in an array. So what's up with that?


If it's what I think you're talking about then: No, nil is used as a marker for the variable argument list to say "this is the end of the list." It's not actually inserted into the dictionary at all. Why it's required is really beyond me, but it's simply an Obj-C syntax thing.


-- Seth Willits




_______________________________________________

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: NSNull and @""
      • From: "Michael Ash" <email@hidden>
    • Re: NSNull and @""
      • From: "Kyle Sluder" <email@hidden>
References: 
 >NSNull and @"" (From: DKJ <email@hidden>)
 >Re: NSNull and @"" (From: Seth Willits <email@hidden>)
 >Re: NSNull and @"" (From: Ian Joyner <email@hidden>)
 >Re: NSNull and @"" (From: Seth Willits <email@hidden>)
 >Re: NSNull and @"" (From: "Stelian Iancu" <email@hidden>)

  • Prev by Date: Re: Matrix of Controls
  • Next by Date: Re: NSNull and @""
  • Previous by thread: Re: NSNull and @""
  • Next by thread: Re: NSNull and @""
  • Index(es):
    • Date
    • Thread