What would be the most efficient way of turning the first three objects (or 1 or 2 if that’s how big the array is) of an array, into a string, which is comma-separated. I’ve got a feeling there is a way to this with blocks, but I can’t work it out
The objects are Bands, stored in bandArray, and the attributes of each band include a bandName.
So the output would be something like
String
"Abba" <- when there is one object
"Abba, Kiss" <- when there is two objects
"Abba, Kiss, Nirvana" <- when there is three objects
"Abba, Kiss, Nirvana" <- when there is four objects. after three, names are ignored
You can use
subarrayWithRange:for that: