Using true immutable copies of for nsarray

This commit is contained in:
michael starke
2014-04-16 13:53:38 +02:00
parent 91ed7ca2b6
commit 95777057ca

View File

@@ -41,7 +41,7 @@
MPIconType iconType = (MPIconType)[iconNumber integerValue]; MPIconType iconType = (MPIconType)[iconNumber integerValue];
[mutableIcons addObject:[MPIconHelper icon:iconType]]; [mutableIcons addObject:[MPIconHelper icon:iconType]];
} }
icons = mutableIcons; icons = [mutableIcons copy];
}); });
return icons; return icons;
} }
@@ -64,7 +64,7 @@
} }
[mutableIcons addObject:iconNumber]; [mutableIcons addObject:iconNumber];
} }
iconTypes = mutableIcons; iconTypes = [mutableIcons copy];
}); });
return iconTypes; return iconTypes;
} }