EOAccess/EOEntity.m (performSelectorOnArrayWithEachObjectOfClass()):

Perform the selectors on a copy of the array.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26595 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ratmice 2008-06-05 23:18:39 +00:00
parent dd5de326a0
commit 78e91c98d0
2 changed files with 5 additions and 0 deletions

View file

@ -9,6 +9,9 @@
(-setDocComment:, -setValueFactoryMethodName:):
(-setAdaptorValueConversionMethodName:): Use ASSIGNCOPY instead of
ASSIGN.
* EOAccess/EOEntity.m
(performSelectorOnArrayWithEachObjectOfClass()): Perform the selectors
on a copy of the array.
2008-06-03 Matt Rice <ratmice@gmail.com>

View file

@ -595,6 +595,7 @@ static void performSelectorOnArrayWithEachObjectOfClass(NSArray *arr, SEL select
{
int i, c;
arr = [arr copy];
for (i = 0, c = [arr count]; i < c; i++)
{
id obj = [arr objectAtIndex:i];
@ -604,6 +605,7 @@ static void performSelectorOnArrayWithEachObjectOfClass(NSArray *arr, SEL select
[obj performSelector:selector withObject:arg];
}
}
RELEASE(arr);
}
- (void) dealloc