-
http://cocoadevcentral.com/d/learn_objectivec/
-
dot notation is simply syntax sugar for brackets? seems yes. best practice is to only use it for properties tho.
so @property (strong, nonatomic) foo;
@synthesize foo=_foo; automatically generates getter foo and setting setFoo
- setFoo:(int)v {
self._foo = v;
}
- foo {
return self._foo;
}
class.foo = 3; == [class setFoo:3]?
ivar = class.foo ; == [ivar setValue = [class foo]]?
-
getter/setter: http://cocoawithlove.com/2009/10/memory-and-thread-safe-custom-property.html
-
http://memo.tv/memory_management_with_objective_c_cocoa_iphone
-
-
-
-