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 <graham....@bigpond.com> wrote:
> 
> 
>> On 7 Jun 2015, at 8:47 am, Cosmo <minonom...@gmail.com> 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 (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