> On Oct 8, 2016, at 2:17 PM, Patrick J. Collins > <[email protected]> wrote: > > I had accidentally redefined the same propery in the subclass... Though > I wasn't overwriting the getter/setter: > … > And this for some reason caused the base classes ivar to never get set? > Somehow it got confused and wasn't able to access the real ivar? or > something?
You’re another victim of auto property synthesis. By default, if you declare a property in your @interface, but don’t put in any sort of implementation, the compiler will automatically decide you meant to @synthesize it, and create an ivar and a getter and setter. So these were shadowing your real methods in the superclass. You can turn off auto-synthesis in the compiler settings. I recommend it. —Jens
_______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/objc-language/archive%40mail-archive.com This email sent to [email protected]
