On Jul 19, 2013, at 1:48 PM, Fritz Anderson <anderson.fr...@gmail.com> wrote:

> Use an NSOperation, or -performSelectorOnMainThread: (you'll have to wrap the 
> call in your own method), or dispatch_[a]sync() to do it on the main thread.

So are you saying that in the following code:

- (void)setNeedsDisplayWrapper:(BOOL)value
{
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 
0), ^
    {
        [self setNeedsDisplay:value];
        
        dispatch_async(dispatch_get_main_queue(), ^
        {
            NSLog(@"completion");
        });
    });
}


All calls made by Cocoa to display the view will be done a separate thread?


-koko
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to