0

For several reasons, I would like to make my application backwards compatible to OS X 10.5.

Until now, I am using lots of GCD dispatch queues added in 10.6 like so:

dispatch_async(dispatch_get_main_queue(), ^{
    [self setStatusText:@"Connection established, waiting for response ..."
               withType:STATUS_MSG_INFO];

});

What would be the easiest alternative so that I don't have to re-write all the code?

Suggestions welcome! Thanks in advance!

4

1 回答 1

2

下面的 NSObject 方法怎么样:

- (void)performSelectorOnMainThread:(SEL)aSelector withObject:(id)arg waitUntilDone:(BOOL)wait
于 2013-08-09T20:16:45.270 回答