I’m trying to change the image of 25 buttons sequentially with delayed time between the changes and it doesn’t work.
The code is:
do {
if (Anterior > -1) {
[[BtnArray objectAtIndex(Anterior)] setImage:Nil];
}
[[BtnArray objectAtIndex:(Gira[J])]
setImage:[NSImage imageNamed:@"Encen.png"]];
Anterior = Gira[J];
Delay(Espera,&junk);
++J;
} while (J<25);
Have not tested, but you could try something like this:
Or in place of calling on btn have your own function
then in that function do: