mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-23 13:42:15 +00:00
Tiny optimisation of makeObjectsPerform...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3219 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
32a9cb800f
commit
0387bd532c
2 changed files with 25 additions and 7 deletions
|
@ -223,6 +223,25 @@
|
|||
return _contents_array[index];
|
||||
}
|
||||
|
||||
- (void) makeObjectsPerformSelector: (SEL)aSelector
|
||||
{
|
||||
unsigned i = _count;
|
||||
|
||||
while (i-- > 0)
|
||||
{
|
||||
[_contents_array[i] performSelector: aSelector];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) makeObjectsPerformSelector: (SEL)aSelector withObject:argument
|
||||
{
|
||||
unsigned i = _count;
|
||||
|
||||
while (i-- > 0)
|
||||
{
|
||||
[_contents_array[i] performSelector: aSelector withObject: argument];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) getObjects: (id*)aBuffer
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue