Re: only defined for abstract class
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