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: Jeffrey Mattox <email@hidden>
- Date: Wed, 28 Jan 2004 17:59:05 -0600
At 12:29 AM -0700 1/17/04, Kerry Hazelgren wrote:
AppleScript Studio is really just Xcode with support for AppleScript
thrown in, so why not use the standard Xcode/IB process for
creating, overriding, and drawing into a view?
I have figured out how to subclass NSView and use Cocoa to draw
graphics inside a window that is set up by AppleScript Studio. So,
now I can draw into my view and it stays there.
But, I don't want to redraw everything each time my drawRect: is
called because much of it has not changed (too slow). However, if I
don't redraw everything, my prior strokes are overwritten before my
drawRect: is invoked. Something is clobbering my view and replacing
my prior strokes with the standard window background.
I have no commands in my drawRect: that refer to any other views or
windows, and I'm just drawing hundreds of lines and circles.
How do I prevent the window background from clobbering my view before
my drawRect: is invoked?
Jeff
_______________________________________________
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.