• 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: only defined for abstract class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: only defined for abstract class


  • Subject: Re: only defined for abstract class
  • From: glenn andreas <email@hidden>
  • Date: Thu, 6 Oct 2005 11:01:17 -0500


On Oct 6, 2005, at 10:47 AM, Francis Derive wrote:


On Oct 6, 2005, at 3:29 PM, Nick Zitzmann wrote:



I'm not an expert at class clustering, but I don't think you can invoke the superclass of a class cluster subclass in one of its primitive methods,



That seems definitely to be true.


because the superclass method doesn't actually do anything except raise exceptions.


But in the general case, I would believe a superclass (primitive) method would do something valuable ?



That's the point of the class cluster architecture - these primitive methods are effectively "pure" abstract methods (and that the superclass only defines the API, and not the internal implementation details). If you're familiar with C++, you can think of it like:


class DictionaryClass {
    virtual id objectForKey(id key) = NULL;
}

If you were to subclass DictionaryClass, you won't call the base classes objectForKey in your derived class's objectForKey.


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! quadrium | build, mutate, evolve | images, textures, backgrounds, art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >only defined for abstract class (From: Francis Derive <email@hidden>)
 >Re: only defined for abstract class (From: Pontus Ilbring <email@hidden>)
 >Re: only defined for abstract class (From: Francis Derive <email@hidden>)
 >Re: only defined for abstract class (From: Nick Zitzmann <email@hidden>)
 >Re: only defined for abstract class (From: Francis Derive <email@hidden>)

  • Prev by Date: Re: Dock Height ?
  • Next by Date: can a Cocoa app scale jpeg images as nicely as Preview does?
  • Previous by thread: Re: only defined for abstract class
  • Next by thread: Re: only defined for abstract class
  • Index(es):
    • Date
    • Thread