Why does Xcode automatically create variables with underscores?
Why in the newest version of Xcode (dp-4) are variables declared with retain,nonatomic made to use the underscore before the variable name? Does this create some sort of type safety? For example, I create a property: @property (retain, nonatomic) IBOutlet UILabel *name; Unless I change the variable inside the dealloc to not have the _, I have to do: @synthesize name = _name; Why is this? Mark Dalrymple, who's way smarter than I am, wrote a blog post at Big Nerd Ranch about this very subject. Bottom line: the underscore is a good idea. I will summarize his post here just in case the link stops