FROM : Nathan
DATE : Mon May 26 21:20:14 2008
so I have a .m file, here's the contents.
#import "RotationHandler.h"
@implementation RotationHandler
int z=1;
float rot;
- (IBAction)buttonRelease:(id)sender {
do
{
rot=rot-0.5;
[sliderRotation setFrameCenterRotation: rot];
[printRotation setFloatValue: rot];
}
while(z=1);
}
@end
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?
DATE : Mon May 26 21:20:14 2008
so I have a .m file, here's the contents.
#import "RotationHandler.h"
@implementation RotationHandler
int z=1;
float rot;
- (IBAction)buttonRelease:(id)sender {
do
{
rot=rot-0.5;
[sliderRotation setFrameCenterRotation: rot];
[printRotation setFloatValue: rot];
}
while(z=1);
}
@end
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?
| Related mails | Author | Date |
|---|---|---|
| Nathan | May 26, 21:20 | |
| Thomas Davie | May 26, 21:26 | |
| Nathan Kinsinger | May 26, 21:31 | |
| Nathan | May 26, 21:35 | |
| Nathan | May 26, 21:35 | |
| Chris Page | Jun 1, 03:23 |






Cocoa mail archive

