([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:
Andrew McCallum 1996-02-13 01:55:34 +00:00
parent 78b946e763
commit 57a201c287

View file

@ -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)