I want to override the getter and setter in my ObjC class using ARC.
.h File
@property (retain, nonatomic) Season *season;
.m File
If you are going to implement your own getter and setter, you'll need to maintain an internal variable:
@synthesize season = _season;
- (void)setSeason:(Season *)s {
// set _season
//Note, if you want to retain (as opposed to assign or copy), it should look someting like this
//[_season release];
//_season = [s retain];
}
- (Season *)season {
// return _season
}