• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to override properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to override properties (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to override properties (From: Graham Cox <email@hidden>)
 >Re: How to override properties (From: Quincey Morris <email@hidden>)
 >Re: How to override properties (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: How to override properties
  • Next by Date: Re: Can't get dynamically sized Collection View cells
  • Previous by thread: Re: How to override properties
  • Next by thread: Re: Can't get dynamically sized Collection View cells
  • Index(es):
    • Date
    • Thread