From ae178917176bd3681594e76ada84aef0c05d49ab Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 13 Feb 1996 01:55:34 +0000 Subject: [PATCH] ([Collection -withObjectsInvoke:]): New method. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@900 72102866-910b-0410-8b05-ffd578937521 --- Source/Collection.m | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Source/Collection.m b/Source/Collection.m index 575a5bf17..cd10d1ca3 100644 --- a/Source/Collection.m +++ b/Source/Collection.m @@ -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 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)