• 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: drawRect is erasing view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawRect is erasing view


  • Subject: Re: drawRect is erasing view
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 14 Aug 2008 22:58:38 +0200

On 14.08.2008, at 22:42, email@hidden wrote:
I'm trying to do some animation where each time drawRect is called it's drawing over what was previously drawn, but something is erasing the view. I've setBackgroundColor for the window to clearColor so it's no longer drawing the default stripes but now it's erasing to black.


I think NSWindow has an isOpaque method. You might have to override that.

Also, you're not using NSRectFill() to erase to clearColor, right? Because that's equivalent to NSRectFillWithOperation() using the 'copy' mode.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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: 
 >drawRect is erasing view (From: email@hidden)

  • Prev by Date: Re: drawRect is erasing view
  • Next by Date: Re: Threading problem using AsyncSocket (Matthew Youney)
  • Previous by thread: Re: drawRect is erasing view
  • Next by thread: Re: drawRect is erasing view
  • Index(es):
    • Date
    • Thread