Re: Stopping a NSView from drawing in -drawRect
Re: Stopping a NSView from drawing in -drawRect
- Subject: Re: Stopping a NSView from drawing in -drawRect
- From: James Chen <email@hidden>
- Date: Fri, 6 Feb 2004 19:21:06 +0800
Hi,
It's a little weird.
The Window(Context) should be double buffered by default, unless you
changing it in some ways.
If not, I think this could be fixed by drawing appropriately.
Could you give us more clues about how you draw those widgets, such as
NSTextView, NSImage and background?
For example, Do you sending -display to your view during your drawing
or something like that?
In my opinion, you might flush the port buffer during you drawing codes.
Hope this helps,
James
I'm drawing a NSTextView and an NSImage to an NSView and doing some
animation with them. The NSTextView works fine, but I have a problem
with the NSImage.
I'm drawing the NSImage using -compositeToPoint:operation:, and I'm
painting out the background using [NSBeizerPath fillRect] just before
drawing the NSImage.
The problem is that the image flickers. Using Quartz Debug I can see
that the whole display is being painted black and then the image is
painted on top, but I want to stop the display until the image is
drawn in place.
Is this possible? I can't find it in the documentation, or in the
archives.
--
Phillip Hutchings
email@hidden
http://www.sitharus.com/
_______________________________________________
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.
_______________________________________________
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.