Does Xcode 4.5 have a slightly different manner of auto-generating properties and their associated memory release sections (in dealloc and viewDidUnload)?
I upgraded to Xcode 4.5 from 4.5 Beta 1 yesterday. Now when I use Interface Builder to create an outlet (by Ctrl-dragging from, say, a UILabel to the associated header file), it creates the @property
declaration in the header as normal:
@property (retain, nonatomic) IBOutlet UILabel *propertyName;
However, in the associated .m file, there is no @synthesize
declaration.
The code in viewDidUnload
is normal:
- (void)viewDidUnload {
[self setPropertyName:nil];
[super viewDidUnload];
}
However, the code in dealloc
prepends an _
on the property name:
- (void)dealloc {
[_propertyName release];
[super dealloc];
}
This also means I cannot reference the property as normal ([propertyName doSomething];
)
Did something change? Or did I accidentally coincidentally change some setting?