X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;f=TargetController.m;h=9f85fd989913d0ec25db1974fdbf8d4854eb5352;hb=51ca12b552a9c17c4d4029b0340e193b273044a8;hp=3442a61e3912169d45437683405bcff8e7f9ad24;hpb=5704217edc0a67f3720053248d5c9ba10131b776;p=enjoyable.git diff --git a/TargetController.m b/TargetController.m index 3442a61..9f85fd9 100644 --- a/TargetController.m +++ b/TargetController.m @@ -47,7 +47,7 @@ case 2: { TargetConfig* c = [[TargetConfig alloc] init]; - [c setConfig: [[configsController configs] objectAtIndex: [configPopup indexOfSelectedItem]]]; + [c setConfig: [configsController configs][[configPopup indexOfSelectedItem]]]; return c; } case 3: { @@ -185,7 +185,7 @@ NSArray* configs = [configsController configs]; [configPopup removeAllItems]; for(int i=0; i<[configs count]; i++) { - [configPopup addItemWithTitle: [[configs objectAtIndex:i]name]]; + [configPopup addItemWithTitle: [configs[i]name]]; } if(preserve) [configPopup selectItemAtIndex:initialIndex];