Custom Getter & Setter iOS 5
I want to override the getter and setter in my ObjC class using ARC. .h File @property (retain, nonatomic) Season *season; .m File @synthesize season; - (void)setSeason:(Season *)s { self.season = s; // do some more stuff } - (Season *)season { return self.season; } Am I missing something here? Yep, those are infinite recursive loops. That's because self.season = s; is translated by the compiler into [self setSeason:s]; and return self.season; is translated into return [self season]; Get rid of the dot-accessor self. and your code will be correct. This syntax, however, can be confusing given