Re: == nil vs. isEqual:nil
Re: == nil vs. isEqual:nil
- Subject: Re: == nil vs. isEqual:nil
- From: Ondra Cada <email@hidden>
- Date: Wed, 15 Aug 2001 23:22:12 +0200
Mike,
>
>>>>> Mike Beam (MB) wrote at Wed, 15 Aug 2001 15:22:38 -0500:
MB> When I'm checking to see whether a suppposed object is nil, is it best to
MB> use
MB>
MB> anObject == nil
This one. You are not asking an existing object "Hey, you here, are you
nil?". You are, instead, checking whether a pointer (anObject) has some value
or not.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc