Re: How to override properties
Re: How to override properties
- Subject: Re: How to override properties
- From: Graham Cox <email@hidden>
- Date: Fri, 02 Oct 2015 16:06:14 +1000
> On 2 Oct 2015, at 3:47 pm, Gerriet M. Denkmann <email@hidden> wrote:
>
> So I added @dynamic to the subclass, and all seems to be ok.
Maybe. What happens if you pass a ‘someDataClass’ instance to -setStuff:, then return it as type subDataClass? It’s not a subDataClass, but your client might well believe it is, as you’ve silently changed its apparent type. I’d call that a bug. If it’s not a bug, and your cleint code is happy, then there’s no reason to redeclare ‘stuff’ as a different type at all.
—Graham
_______________________________________________
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