Help! Newbie warning...
I am currently reading Aaron Hillegass' book, and am confused on page 42.
The code reads:
id foo;
foo=nil;
[foo count];
Can somebody explain what each line of the code does, and possibly explain why I "should be happy" about this. (I understand the Java code before this example, so no help needed there) Thanks all it will be greatly appreciated!
I am currently reading Aaron Hillegass' book, and am confused on page 42.
The code reads:
id foo;
foo=nil;
[foo count];
Can somebody explain what each line of the code does, and possibly explain why I "should be happy" about this. (I understand the Java code before this example, so no help needed there) Thanks all it will be greatly appreciated!