• 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: nil in NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nil in NSArray


  • Subject: Re: nil in NSArray
  • From: Mike Schrag <email@hidden>
  • Date: Sat, 13 Dec 2008 20:58:07 -0500

Cocoa Foundation has NSNull as JavaFoundation does, why not use that?
The NSNull class defines a singleton object used to represent null values in collection objects (which don’t allow nil values).
... because it's a lame hack :) ? I know there are workarounds, but in 2008, I don't expect junk like that. I can't imagine it's really a null-terminated array in NSArray's implementation. They almost certainly track count as an int separately, and therefore wouldn't need null-termination of the internal array.

ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: nil in NSArray
      • From: Clark Mueller <email@hidden>
References: 
 >nil in NSArray (From: Mike Schrag <email@hidden>)
 >Re: nil in NSArray (From: Clark Mueller <email@hidden>)

  • Prev by Date: Re: nil in NSArray
  • Next by Date: Re: nil in NSArray
  • Previous by thread: Re: nil in NSArray
  • Next by thread: Re: nil in NSArray
  • Index(es):
    • Date
    • Thread