Re: only defined for abstract class
Re: only defined for abstract class
- Subject: Re: only defined for abstract class
- From: Greg Herlihy <email@hidden>
- Date: Thu, 06 Oct 2005 07:23:33 -0700
- Thread-topic: only defined for abstract class
The five "primitive" NSMutableArray methods are documented in the first
paragraph of the NSMutableArray entry in the Core Foundation Reference. So
they are not all that difficult to find:
addObject:
insertObject:atIndex:
removeLastObject
removeObjectAtIndex:
replaceObjectAtIndex:withObject:
Greg
On 10/6/05 7:10 AM, "Mark Munz (DevList)" <email@hidden> wrote:
>
> On Oct 6, 2005, at 2:47 AM, Francis Derive wrote:
>>
>> From what I have read, here I override the 2 inherited "primitive"
>> methods -count and -objectAtIndex:
>>
> I'm assuming that the mutable version has an additional primitive
> that has to be overridden. Unfortunately Apple documentation on Class
> Clusters isn't great. Specifically, documenting which classes ARE
> class clusters and what the primitive methods for each are. NSData
> and NSMutableData documents what primitive methods are, NSArray and
> NSMutableArray do not.
>
> I would file bugs on the documentation.
>
..
>>
>
> And I believe you'll need to override an additional method for
> storing the object in the case of sublcassing NSMutableArray. Not
> sure which method that is, as it isn't documented (as far as I can
> tell) and I haven't had to do it myself.
>
> Hopefully that helps a bit.
>
> Mark Munz
>
> _______________________________________________
> 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
_______________________________________________
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