Lots of gsdoc updates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11148 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2001-10-15 14:42:56 +00:00
parent c51ced64c9
commit 846935994d
11 changed files with 664 additions and 121 deletions

View file

@ -28,16 +28,26 @@
@implementation NSEnumerator
- (NSArray *)allObjects
- (NSArray*) allObjects
{
NSMutableArray *array;
id obj;
NSMutableArray *array;
id obj;
SEL nsel;
IMP nimp;
SEL asel;
IMP aimp;
array = [NSMutableArray arrayWithCapacity:10];
array = [NSMutableArray arrayWithCapacity: 10];
while((obj = [self nextObject]))
[array addObject:obj];
nsel = @selector(nextObject);
nimp = [self methodForSelector: nsel];
asel = @selector(addObject:);
aimp = [array methodForSelector: asel];
while ((obj = (*nimp)(self, nsel)) != nil)
{
(*aimp)(array, asel, obj);
}
return array;
}