diff --git a/SoObjects/SOGo/NSArray+Utilities.h b/SoObjects/SOGo/NSArray+Utilities.h index bd026f4c3..15cbb174b 100644 --- a/SoObjects/SOGo/NSArray+Utilities.h +++ b/SoObjects/SOGo/NSArray+Utilities.h @@ -31,6 +31,12 @@ - (NSArray *) stringsWithFormat: (NSString *) format; +#ifdef GNUSTEP_BASE_LIBRARY +- (void) makeObjectsPerform: (SEL) selector + withObject: (id) object1 + withObject: (id) object2; +#endif + @end #endif /* NSARRAY_UTILITIES_H */ diff --git a/SoObjects/SOGo/NSArray+Utilities.m b/SoObjects/SOGo/NSArray+Utilities.m index 6949db3bd..ed30b5e5a 100644 --- a/SoObjects/SOGo/NSArray+Utilities.m +++ b/SoObjects/SOGo/NSArray+Utilities.m @@ -45,4 +45,17 @@ return formattedStrings; } +- (void) makeObjectsPerform: (SEL) selector + withObject: (id) object1 + withObject: (id) object2 +{ + int count, max; + + max = [self count]; + for (count = 0; count < max; count++) + [[self objectAtIndex: count] performSelector: selector + withObject: object1 + withObject: object2]; +} + @end