osx - Alternative to GCD dispatch queues -
for several reasons, make application backwards compatible os x 10.5.
until now, using lots of gcd dispatch queues added in 10.6 so:
dispatch_async(dispatch_get_main_queue(), ^{ [self setstatustext:@"connection established, waiting response ..." withtype:status_msg_info]; });
what easiest alternative don't have re-write code?
suggestions welcome! in advance!
how following nsobject method:
- (void)performselectoronmainthread:(sel)aselector withobject:(id)arg waituntildone:(bool)wait
Comments
Post a Comment