• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drawing from secondary thread erases resize corner in window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Drawing from secondary thread erases resize corner in window? [solved, for now]
      • From: Hank Heijink <email@hidden>
References: 
 >Drawing from secondary thread erases resize corner in window? (From: Hank Heijink <email@hidden>)
 >Re: Drawing from secondary thread erases resize corner in window? (From: "Kyle Sluder" <email@hidden>)
 >Re: Drawing from secondary thread erases resize corner in window? (From: Chris Suter <email@hidden>)

  • Prev by Date: RTF pasting as plain text in NSTextView in some cases
  • Next by Date: Re: Combining NSLineBreakByWordWrapping + NSLineBreakByTruncatingTail in NSTextView
  • Previous by thread: Re: Drawing from secondary thread erases resize corner in window?
  • Next by thread: Re: Drawing from secondary thread erases resize corner in window? [solved, for now]
  • Index(es):
    • Date
    • Thread