How dangerous is it to use pointer-style assignment versus setter-methods in Objective-C?
Lets say I have a simple class like the following: @interface A { // @public int var; } // @property(some_property) int var; @end When I want to access the variable var, I have some options. If I make var public, I can do this: A objectA = [ [ A alloc ] init ]; NSLog( @"%d", objectA->var ); objectA->var = someNumber; If I make it a property instead, I'll have to do something more like this: A objectA = [ [ A alloc ] init ]; NSLog( @"%d", objectA.var ); // dot-syntax NSLog( @"%d", [ objectA var ] ); // get-syntax [ objectA setVar: someNumber ]; I've tried both and they work fine but my question