I started to use Xcode 4.2 and it seems you can’t use anymore dealloc and release like you were doing before.
If I write the following implementation:
@implementation Person
@synthesize firstName;
@synthesize lastName;
- (void) dealloc
{
[firstName release];
[lastName release];
[super dealloc];
}
The compiler bothers me saying that release is unavailable in automatic reference counting mode. Is it a feature of Objective-C 2.0? Where I can read more about it?
This is actually a feature of Automatic Reference Counting (ARC). If you turn ARC off, you can use manual memory management, or (Mac OS X only) garbage collection.