Re: nil in NSArray
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