Tag Archives: BestPractice

Fast Enumeration

I was looking at some client code and saw essentially this: NSArray *items = [NSArray arrayWithObjects:@"one", @"two", @"three", @"four", nil]; MyClass *myClass = [[MyClass alloc] init]; for (int i=0; i<4; i++) {     myClass.thing = @”test”;     myClass.widget … Continue reading

Posted in Uncategorized | Tagged | Leave a comment