For OS X 10.4.x and previous:
int i;
for (i = 0; i < [myArray count]; i++) {
id myArrayElement = [myArray objectAtIndex:i];
...do something useful with myArrayElement
}
For OS X 10.5.x (or iPhone) and beyond:
for (id myArrayElement in myArray) {
...do something useful with myArrayElement
}