Array: sorta-implement -description

An #if 0'ed out implementation of the -description method, which currently
returns a Quake string containing whatever the contained objects return
from -description, between parens and separated by commas (just like plist
format). Ideally, we'd have string objects interchangeable with primitive
strings, but having string objects (which are being worked on) should help.
This commit is contained in:
Jeff Teunissen 2011-06-14 13:25:03 -04:00
parent 21c46b9081
commit b18302eac1

View file

@ -425,6 +425,21 @@
[super dealloc];
}
@end
#if 0
/*
This method is a sort of placeholder for when strings work.
*/
- (string) description
{
string desc = "(";
for (i = 0; i < [self count]; i++) {
if (i)
desc += ", ";
desc += [[self objectAtIndex: i] description];
}
desc += ")";
return desc;
}
#endif
@reference Array (Private);
@end