What is the difference in accessing an objects properties or methods via foo.property to [foo property]?
+3
A:
Nothing! Dot-notation is "syntactic sugar" introduced in Objective-C 2.0. In fact, the compiler converts foo.property to [foo property] during compile-time, so they compile to exactly the same thing.
It's simply a matter of which you prefer.
iKenndac
2009-09-09 08:32:55