mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([Collection -withObjectsInvoke:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@900 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
78b946e763
commit
57a201c287
1 changed files with 12 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Implementation for Objective-C Collection object
|
||||
Copyright (C) 1993,1994, 1995 Free Software Foundation, Inc.
|
||||
Copyright (C) 1993,1994, 1995, 1996 Free Software Foundation, Inc.
|
||||
|
||||
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||
Date: May 1993
|
||||
|
@ -1015,6 +1015,17 @@
|
|||
return [self withElementsCall:doIt];
|
||||
}
|
||||
|
||||
/* xxx a temporary implementation until the collection overhaul gets done. */
|
||||
- (void) withObjectsInvoke: anInvocation
|
||||
{
|
||||
void doIt(elt e)
|
||||
{
|
||||
[anInvocation invokeWithObject: e.id_u];
|
||||
}
|
||||
CHECK_CONTAINS_OBJECTS_ERROR();
|
||||
[self withElementsCall:doIt];
|
||||
}
|
||||
|
||||
- safeWithObjectsCall: (void(*)(id))aFunc
|
||||
{
|
||||
void doIt(elt e)
|
||||
|
|
Loading…
Reference in a new issue