mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-22 21:00:44 +00:00
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:
parent
80a2657f4a
commit
a6415d024a
2 changed files with 5 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue