Skip to content

Instantly share code, notes, and snippets.

@amiri
Created November 28, 2010 20:34
Show Gist options
  • Save amiri/719285 to your computer and use it in GitHub Desktop.
Save amiri/719285 to your computer and use it in GitHub Desktop.
NSMutableArray *tempGreens = [NSMutableArray array];
for (id object in [[searchViewArray valueForKey:@"produceName"] filteredArrayUsingPredicate:predicate]) {
NSString *mygreen = [NSString string];
mygreen = object;
NSLog(@"During loop, my temp string is: %@",mygreen);
[tempGreens addObject:mygreen];
}
NSLog(@"After loop my temp array is: %@",tempGreens);
self.greensArray = [self.greensArray arrayByAddingObjectsFromArray:tempGreens];
NSLog(@"After assignment from temp, self.greensArray is: %@",self.greensArray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment