Quote:
Originally Posted by bigbad
Now this is a stupid question no-doubt, but what is the advantage of having the IBOutlet (with the @property instead)?
|
Not stupid at all!
Apple now recommends placing the IBOutlet tag on the property declaration vs. the instance variable (ivar).
The Objective-C 2.0 Programming Language: Declared Properties
As I understand it, once we get to 64-bit land, variable storage is created at run-time vs. being set up at compile-time. That means those ivars can eventually go bye-bye! Apple may be advocating IBOutlet on property declarations
now in anticipation of that. (Intrepid readers: Please confirm if I'm on the right track here!)