Use [NSNull null]if you need to save an empty placeholder.
For instance:
NSArray * myArray = [NSArray arrayWithObjects:obj1, [NSNull null], obj3, nil];
myArray 3 . , , , Null singleton:
id object = [myArray objectAtIndex:anIndex];
if (object == [NSNull null]) {
} else {
}
EDIT ( )
@Mike , , .
:
id obj = ...;
obj . . , NSLog(@"%p", obj), - 0x1234567890. obj , , . , 0x1234567890. , : obj = nil;, . - 0x1234567890.