I have noticed that with Xcode4 Apple has updated the application templates to include underscores before instance variables.
// Xcode4
@property (nonatomic, retain) IBOutlet UIWindow *window;
@synthesize window = _window;
.
// Xcode3
@property (nonatomic, retain) IBOutlet UIWindow *window;
@synthesize window;
I know there are differing opinions on the usefulness of this but I was just curious if the updated templates where:
- (1) Highlighting a new best practice.
- (2) Showing how Apple does things but meaning for you to do it the old way.
- (3) Its just personal taste, it does not matter.