I just want to implement a small delay.. so is it "ok" to do the following?
Code:
[NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(timerUpdate) userInfo:nil repeats:NO];
while(!done); //wait here until timerUpdate sets flag to done..
//continue program..
Ok, basically I am setting up the timer, but all I want is to delay, so I loop until the timerUpdate function sets the 'done' property..
can i loop like that? is that "ok"? thx