Re: NSQuickDrawView opacity troubles (solved)
Re: NSQuickDrawView opacity troubles (solved)
- Subject: Re: NSQuickDrawView opacity troubles (solved)
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 6 Apr 2004 06:23:47 +0200
At 12:01 Uhr -0700 05.04.2004, Chris Silverberg wrote:
If you are using NSQuickDrawView and do not need transparency, you
can gain efficiency by making your view opaque by implementing
isOpaque:
Quickdraw doesn't support transparency. At least not in a way that
lets you composite it into Quartz.
- (BOOL)isOpaque { return YES; }
However, if you do this, you *must* flush the quickdraw port when
you draw. For example:
- (void)drawRect:(NSRect)rect
{
/* do some quickdraw stuff here */
QDFlushPortBuffer([self qdPort], NULL); /* you MUST do this
if this view is opaque */
}
--
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.