Есть ли лучший способ инициализировать двумерный массив в target-c, чем этот:
NSNumber *a = [[NSNumber alloc] initWithInt:0];
NSNumber *b = [[NSNumber alloc] initWithInt:1];
NSMutableArray *template = [[NSMutableArray alloc] initWithCapacity:16];
switch (myInt) {
case 0:
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, a, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, a, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, a, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, a, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
[template addObject:[[NSArray alloc] initWithObjects:b, b, b, b, b, b, b, b, nil]];
break;
/* more */
}