RE: count only defined for abstract class error
RE: count only defined for abstract class error
- Subject: RE: count only defined for abstract class error
- From: "Mondragon, Ian" <email@hidden>
- Date: Thu, 01 May 2003 15:38:48 -0500
Or simply create a class that contains an array ivar, along with whatever
other ivars you need to add...
-----Original Message-----
From: Jonathan E. Jackel [
mailto:email@hidden]
Sent: Thursday, May 01, 2003 2:33 PM
To: Jean-Daniel Dupas; email@hidden
Subject: RE: count only defined for abstract class error
NSMutableArray is a class cluster. Subclassing it is a bit more involved
than subclassing other objects.
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmin
gTopics/Foundation/Concepts/ClassClusters.html
Someone else suggested using categories to extend NSMutableArray. That's
often a good way to go.
Jonathan.
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Jean-Daniel Dupas
>
Sent: Thursday, May 01, 2003 1:27 PM
>
To: email@hidden
>
Subject: count only defined for abstract class error
>
>
>
I have a problem with a subclass of NSMutableArray.
>
I define it like that.
>
>
@interface Foo : NSMutableArray
>
{}
>
@end
>
>
And when i try to do [foo count] i have an error message:
>
-count only defined for abstract class. Define -[Foo count]!
>
>
I try to do a -(unsigned)count methode with
>
Return [super count]; in my class Foo
>
But i have the same error.
>
Why have i this error?
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.