This is a new collection literal available in the compiler, which ships with code xcode 4.4 and higher
@[object1, object2];
equivalently
[NSArray arrayWithObjects:object1, object2, nil]
so yes, this is an auto-implemented object, if you need it to be saved, you can do
myRetainedArray = [@[object1, object2] retain];
this question contains a good description of all new literals
wattson12
source share