Re: Drawing from secondary thread erases resize corner in window?
Re: Drawing from secondary thread erases resize corner in window?
- Subject: Re: Drawing from secondary thread erases resize corner in window?
- From: Hank Heijink <email@hidden>
- Date: Wed, 27 Feb 2008 16:41:33 -0500
On Feb 27, 2008, at 2:40 PM, Hank Heijink wrote:
- (void)updateView
{
if (useSecondaryThread) {
if ([view lockFocusIfCanDraw]) {
[view drawFromSecondaryThread:view.bounds];
[[view window] flushWindow];
[view unlockFocus];
}
} else {
[view setNeedsDisplay:YES];
}
}
I had my test app use a boolean to switch between drawing on the main
thread and drawing on the secondary one. Meant to delete that part.
Sorry. In this case, useSecondaryThread is obviously YES.
Hank
Hank Heijink
email@hidden
_______________________________________________
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