Re: Drawing graphics into a view in AppleScript Studio
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.