I saw one Visual Quickstart Guide about Unix, and it sucked a lot of time. It doesn't seem to be much better, at least not from the sample. The correct way to create a class variable in Objective-C is as follows:
// Counted.h @interface Counted : NSObject + (NSUInteger) numberOfInstances; @end // Counted.m
This is actually a static variable, not a real class variable. But you should not worry too much about class variables; they are usually a sign that you are doing something wrong. (I simplify a little, but not a lot.)
If you're looking for a decent Objective-C book, read one of them from Apple . Its free and good reading.
zoul May 17 '11 at 19:13 2011-05-17 19:13
source share