> On 2 Oct 2015, at 3:47 pm, Gerriet M. Denkmann <gerr...@mdenkmann.de> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to