• 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 graphics into a view in AppleScript Studio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing graphics into a view in AppleScript Studio


  • Subject: Re: Drawing graphics into a view in AppleScript Studio
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Thu, 29 Jan 2004 21:15:30 +0100

At 17:59 Uhr -0600 28.01.2004, Jeffrey Mattox wrote:
How do I prevent the window background from clobbering my view before my drawRect: is invoked?

You don't. If your drawing takes too long, cache it. I.e. create an NSImage, draw your stuff into that, and every time drawRect: is called, simply draw out the NSImage instead. You'd keep the NSImage around in a member variable of your class.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Drawing graphics into a view in AppleScript Studio (From: Jeffrey Mattox <email@hidden>)
 >Re: Drawing graphics into a view in AppleScript Studio (From: Jeffrey Mattox <email@hidden>)

  • Prev by Date: Resetting user defaults?
  • Next by Date: Re: Disabling_Expose_for_some_windows,_some_day?
  • Previous by thread: Re: Drawing graphics into a view in AppleScript Studio
  • Next by thread: RE: Drawing graphics into a view in AppleScript Studio
  • Index(es):
    • Date
    • Thread