Re: Definition of Nil and nil was: NSData testing for NULL [SOLVED]
Re: Definition of Nil and nil was: NSData testing for NULL [SOLVED]
- Subject: Re: Definition of Nil and nil was: NSData testing for NULL [SOLVED]
- From: Dave Rosborough <email@hidden>
- Date: Mon, 17 Jan 2005 08:44:42 -0800
This has been an interesting 'feature' of Objective-C for as long
as I can remember. Apparently we need to link to a FAQ somewhere
that has a full list of all the caveats! (Although, then we'd have to
convince people to read the whole dang thing! :-)
From Alistair Houghton's FAQ:
___
Messages sent to nil will have no
effect, and, if they are declared as returning an object, will return
nil.
For portability reasons, you should not rely on the return value of
messages
sent to the nil object unless the message is declared as returning an
object.
___
http://www.alastairs-place.net/cocoa/faq.txt
TTYL
DaveR
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden