• 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: Forwarding messages to another class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forwarding messages to another class


  • Subject: Re: Forwarding messages to another class
  • From: Cosmo <email@hidden>
  • Date: Sat, 06 Jun 2015 17:04:36 -0700

Sorry. I was inaccurate in my language. I’m actually calling these methods on the superclass, not on instances of it.

> On Jun 6, 2015, at 4:58 PM, Graham Cox <email@hidden> wrote:
>
>
>> On 7 Jun 2015, at 8:47 am, Cosmo <email@hidden> wrote:
>>
>> I should have explained that I’m calling these methods on instances of the superclass, not the subclass, so inheritance doesn’t work.
>
>
> But you have written class methods, so instances doesn’t come into it. Seems possible that there’s a fundamental misunderstanding involved here.
>
> What you’ve described (a base class that provides a generic interface, with specific implementations in subclasses) is eminently doable - in fact largely the entire point of object-oriented programming - but perhaps you should simply be doing this using straightforward instance methods, not class methods?
>
> —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


  • Follow-Ups:
    • Re: Forwarding messages to another class
      • From: Quincey Morris <email@hidden>
References: 
 >Forwarding messages to another class (From: Cosmo <email@hidden>)
 >Re: Forwarding messages to another class (From: Quincey Morris <email@hidden>)
 >Re: Forwarding messages to another class (From: Cosmo <email@hidden>)
 >Re: Forwarding messages to another class (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Forwarding messages to another class
  • Next by Date: Re: Forwarding messages to another class
  • Previous by thread: Re: Forwarding messages to another class
  • Next by thread: Re: Forwarding messages to another class
  • Index(es):
    • Date
    • Thread