Skip navigation.
 
mlRe: Loops in Objective C?
FROM : Thomas Davie
DATE : Mon May 26 21:26:00 2008

>
> I won't bother showing you the other files in the project I know 
> they're all in order. So I want the object receiving sliderRotation 
> to rotate, in the above code I want it to rotate forever. If I 
> remove the loop, each time I press the button it rotates -.5 
> degrees. But with the loop in there, I get the horrible spinning 
> beachball of eternity when I press the button and the object that is 
> supposed to rotate never moves. Do I have to use some special 
> Objective C loop?


No, no such thing, just your loop never modifies the value of z, so 
your program's execution never proceeds outside the loop.  The GUI 
can't redraw if all your program is doing is looping infinitely.

Bob

Related mailsAuthorDate
mlLoops in Objective C? Nathan May 26, 21:20
mlRe: Loops in Objective C? Thomas Davie May 26, 21:26
mlRe: Loops in Objective C? Nathan Kinsinger May 26, 21:31
mlRe: Loops in Objective C? Nathan May 26, 21:35
mlRe: Loops in Objective C? Nathan May 26, 21:35
mlRe: Loops in Objective C? Chris Page Jun 1, 03:23