• 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: m <email@hidden>
  • Date: Thu, 6 Oct 2005 02:21:33 -0700
  • Resent-date: Thu, 6 Oct 2005 02:31:33 -0700
  • Resent-from: m <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden

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

[much difficulty with subclasses of NSMutableArray snipped away]


****** Any more help is welcome indeed !



I believe the answer is (and my understanding of class clusters is not as deep as it should be) that if you insist on subclassing a class that is actually a class cluster (like NSArray, NSMutableArray, et al), your subclass must implement **all** of the methods that you expect to call. Furthermore, you may not call the superclass' implementations from your implementations.

In essence, the only things you "inherit" when you subclass a class like NSMutableArray is the type (so you can pass an instance of your subclass to a method that expects an NSMutableArray) and NSMutableArray's interface.

_murat



_______________________________________________
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


  • Prev by Date: Re: NSKeyedArchiver UTF-8 problems
  • Next by Date: Re: NSKeyedArchiver UTF-8 problems
  • Previous by thread: Re: only defined for abstract class
  • Next by thread: how can i disable the "Special Characters" menu item
  • Index(es):
    • Date
    • Thread