This may be obvious, but a few comments I've seen elsewhere suggests maybe it's not. If you use dot syntax like this:NSString* movieTitle = movie.title;
I thought it was logical that it did not work this way?
so what you are saying is that I can not only reach attributes declared with the @property syntax, but any method that does not take an argument? In essence this means that I could avoid bracket syntax for a lot of Cocoa?(This is madness!) What is Apples stance on that? (This is ... Cupertino!)
This syntax should only be used for methods that act as getters or setters.
I hope you don't mind if I enforce this in the TextMate Objective-C completion bundle.
by Joachim Mrtensson — Nov 04
This may be obvious, but a few comments I've seen elsewhere suggests maybe it's not. If you use dot syntax like this:
NSString* movieTitle = movie.title;
I thought it was logical that it did not work this way? so what you are saying is that I can not only reach attributes declared with the @property syntax, but any method that does not take an argument? In essence this means that I could avoid bracket syntax for a lot of Cocoa?(This is madness!) What is Apples stance on that? (This is ... Cupertino!)
This syntax should only be used for methods that act as getters or setters. I hope you don't mind if I enforce this in the TextMate Objective-C completion bundle.