Design Element
Comment on "A Quick Objective-C 2.0 Tutorial"
by Clark Cox — Oct 28
What's the difference between:
NSString* foo and NSString *foo

Nothing, as far as the compiler is concerned.

and why this?: - (NSString*)title { return title;}
and not this: - (NSString)*title { return title;}

The latter is a syntax error :)

and why this?: Movie* newMovie = [Movie movie];
and not this: Movie *newMovie = [Movie movie];

Style. Like the NSString example above, as far as the compiler is concerned, those are identical.
Back to "A Quick Objective-C 2.0 Tutorial"
Design Element

Copyright © Scott Stevenson 2004-2015