Re: Threads
Re: Threads
- Subject: Re: Threads
- From: koko <email@hidden>
- Date: Fri, 19 Jul 2013 14:09:43 -0600
On Jul 19, 2013, at 1:48 PM, Fritz Anderson <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden
References: | |
| >Threads (From: koko <email@hidden>) |
| >Re: Threads (From: Fritz Anderson <email@hidden>) |