¡@

Home 

2014/10/15 ¤U¤È 10:10:40

iphone Programming Glossary: isworking

Is calling -[NSRunLoop runUntilDate:] a good idea?

http://stackoverflow.com/questions/4923621/is-calling-nsrunloop-rununtildate-a-good-idea

processed. Here's an outline of my code the names of variables have been changed to protect the innocent __block BOOL isWorking YES __block ASIHTTPRequest request ASIHTTPRequest alloc initWithURL actual URL autorelease request setCompletionBlock ^.. request ASIHTTPRequest alloc initWithURL actual URL autorelease request setCompletionBlock ^ set local variable isWorking NO request setFailedBlock ^ show alert to user isWorking NO queue addOperation request while isWorking NSRunLoop currentRunLoop.. autorelease request setCompletionBlock ^ set local variable isWorking NO request setFailedBlock ^ show alert to user isWorking NO queue addOperation request while isWorking NSRunLoop currentRunLoop runUntilDate NSDate dateWithTimeIntervalSinceNow..