Possible Duplicate:
What's the difference between [NSNull null] and nil?
What are the differences between nil, NULL and [NSNULL nil]?
1.
id dicValue = [aDictionary objetForKey:@"aKey"];
if(dicValue != nil)
{
blablala...
}
or
2.
if(dicValue != [NSNull null])
{
blablala...
}
should I choose the first one,or the second one?
or when it comes like this :
3.
if ([aDictionary objetForKey:@"aKey"] != nil)
or
4.
if ([aDictionary objetForKey:@"aKey"] != [NSNull null])
and what again ?
1.2.3.4. which is correct and recommended?