Re: Synthesised properties and additional actions
Re: Synthesised properties and additional actions
- Subject: Re: Synthesised properties and additional actions
- From: Joanna Carter <email@hidden>
- Date: Wed, 22 Jun 2011 18:41:48 +0100
Hi Matt
> Well, if you really want to know that, just read the discussion in the book:
>
> http://www.apeth.com/iOSBook/ch12.html
>
> My thought was (putting myself in the shoes of the student), hey, I have no idea exactly what code @synthesize generates, but whatever it is, it surely constitutes a correct getter and (especially) setter, whereas if I write those things myself (and especially the setter) the chances that I'll do something wrong are quite high. So the question is simply, how can I add my own functionality while at the same time inheriting all the synthesized accessors' yummy goodness, whatever it may be? m.
Ah, now I get it!!! - at least I think I do ;-)
AFAICT, you are talking about making "non-GC" accessors less prone to reference counting errors? If I'm using GC, then this, presumably, becomes less relevant?
Joanna
--
Joanna Carter
Carter Consulting
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden