Skip to content

Commit

Permalink
Moose fixes: Don't modify the array during enumeration, enumerate the…
Browse files Browse the repository at this point in the history
… original array and modify the mutable copy instead.

git-svn-id: svn://witness.is-a-geek.org/svn@66 378c4bed-2673-4746-83ae-d22ddc8c5b7c
  • Loading branch information
uli committed Jan 17, 2010
1 parent fc65c86 commit 273f12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UKApplicationListController.m
Expand Up @@ -49,7 +49,7 @@ -(void) awakeFromNib
listOfApplications = [dict mutableCopy];

// Make all entries in the array mutable:
NSEnumerator* appEntryEnny = [listOfApplications objectEnumerator];
NSEnumerator* appEntryEnny = [dict objectEnumerator];
NSDictionary* currAppEntry = nil;
int x = 0;

Expand Down

0 comments on commit 273f12c

Please sign in to comment.