Sending a message to zero is valid in Objective-C. A message is not sent to the freed object.
Sending a message to a freed object:
id obj = [[MyClass alloc] init];
[obj release];
[obj doSomething];
:
id obj = [[MyClass alloc] init];
[obj release], obj = nil;
[obj doSomething];
nil , , , , - . Sedate Alien:
[controlCenter dealloc];
...
float timeLeft = [controlCenter timeToWaitBeforeBombDetonation];
, controlCenter . .
[controlCenter dealloc], controlCenter = nil;
...
float timeLeft = [controlCenter timeToWaitBeforeBombDetonation];
0.0 timeLeft, , , , controlCenter .
, Objective-C, , , , , , . , , , Ada.