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: "Hamish Allan" <email@hidden>
- Date: Thu, 28 Feb 2008 16:45:25 +0000
On Thu, Feb 28, 2008 at 1:30 AM, Chris Suter <email@hidden> wrote:
> I suspect the problem with the resize corner is because it's drawn by
> the framework and the code that draws in the background is overwriting
> it. I'm not sure how you solve that.
Assuming you're drawing on a secondary thread because it's
computationally expensive: have that thread draw to a cache e.g.
NSImage and call setNeedsDisplay:, then in your drawRect: (on the main
thread) just transfer the contents of the cache to your rect.
Hamish
_______________________________________________
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