mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +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
f65e426c41
commit
ae17891717
1 changed files with 12 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* Implementation for Objective-C Collection object
|
/* 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>
|
Written by: R. Andrew McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
Date: May 1993
|
Date: May 1993
|
||||||
|
@ -1015,6 +1015,17 @@
|
||||||
return [self withElementsCall:doIt];
|
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
|
- safeWithObjectsCall: (void(*)(id))aFunc
|
||||||
{
|
{
|
||||||
void doIt(elt e)
|
void doIt(elt e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue