mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
([NSArrayNonCore -description]): Implemented by Nathan Urban.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1534 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e3b3ecf55d
commit
18f389e663
1 changed files with 15 additions and 2 deletions
|
@ -363,8 +363,21 @@ static Class NSMutableArray_concrete_class;
|
||||||
|
|
||||||
- (NSString*) description
|
- (NSString*) description
|
||||||
{
|
{
|
||||||
[self notImplemented:_cmd];
|
id desc;
|
||||||
return nil;
|
int count = [self count];
|
||||||
|
int i;
|
||||||
|
|
||||||
|
desc = [NSMutableString stringWithCapacity: 2];
|
||||||
|
[desc appendString: @"("];
|
||||||
|
if (count > 0)
|
||||||
|
[desc appendString: [[self objectAtIndex: 0] description]];
|
||||||
|
for (i=1; i<count; i++)
|
||||||
|
{
|
||||||
|
[desc appendString: @", "];
|
||||||
|
[desc appendString: [[self objectAtIndex: i] description]];
|
||||||
|
}
|
||||||
|
[desc appendString: @")"];
|
||||||
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSString*) descriptionWithIndent: (unsigned)level
|
- (NSString*) descriptionWithIndent: (unsigned)level
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue