mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
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:
parent
c51ced64c9
commit
846935994d
11 changed files with 664 additions and 121 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue