// 空の配列の生成 NSMutableArray *a = [[NSMutableArray alloc] init]; NSLog(@"a = %@", a); //=> [] NSLog(@"a.count = %d", [a count]); //=> 0 [a release]; // 値を指定した配列の生成 a = [[NSMutableArray alloc] initWithObjects: @"first", @"second", @"third", nil]; NSLog(@"a = %@", a); //=> [first, second, third] // 要素の追加 [a addObject: @"fourth"]; NSLog(@"a = %@", a); //=> [first, second, third, fourth] // 配列による要素の追加 NS