mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
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:
parent
21c46b9081
commit
b18302eac1
1 changed files with 17 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue