Objective-C – Property Access Guide

objective-c

What is the difference in accessing an objects properties or methods via foo.property to [foo property]?

Best Answer

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.

Related Question