From fcbf7e33be84e000c0a6069b6b351b5725c1d76b Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Tue, 24 Sep 1996 15:20:05 +0000 Subject: [PATCH] ([NSMutableSet -addObjectsFromArray:]): Implemented. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1811 72102866-910b-0410-8b05-ffd578937521 --- Source/NSSet.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/NSSet.m b/Source/NSSet.m index 2fd69ced1..96e25d0f9 100644 --- a/Source/NSSet.m +++ b/Source/NSSet.m @@ -1,5 +1,5 @@ /* NSSet - Set object to store key/value pairs - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by: Andrew Kachites McCallum Created: Sep 1995 @@ -346,7 +346,10 @@ static Class NSMutableSet_concrete_class; - (void) addObjectsFromArray: (NSArray*)array { - [self notImplemented:_cmd]; + int i, c = [array count]; + + for (i = 0; i < c; i++) + [self addObject: [array objectAtIndex: i]]; } - (void) unionSet: (NSSet*) other