== nil vs. isEqual:nil
== nil vs. isEqual:nil
- Subject: == nil vs. isEqual:nil
- From: Mike Beam <email@hidden>
- Date: Wed, 15 Aug 2001 15:22:38 -0500
Hello!
When I'm checking to see whether a suppposed object is nil, is it best to
use
anObject == nil
Or
[anObject isEqual:nil];
Or none of the above? Is this a nit-picky point? Does it matter at all?
Thanks!
Mike Beam