Design Element
Comment on "New Objective-C Tutorial"
by Marco Masser — Apr 19
Nice article. But as noted before, I think you should elaborate on the @"" string syntax and maybe on the fact that objects you create with methods other than -init... (e.g. [NSString string]) are simply autoreleased in the constructor by convention.
Also, there are two errors in section 7 "More on Memory Management." The following line appears twice in the section:
NSNumber* value1 = [[Photo alloc] initWithFloat:8.75];
The +alloc method should be sent to the NSNumber class, of course.

And one small grammatical error: In section 9 "Properties," there's a verb ("feel"?) missing in the second paragraph, counted from the bottom.
Back to "New Objective-C Tutorial"
Design Element

Copyright © Scott Stevenson 2004-2015