Re: Unwanted transparency in custom view
Re: Unwanted transparency in custom view
- Subject: Re: Unwanted transparency in custom view
- From: Gregory Weston <email@hidden>
- Date: Mon, 17 Jun 2002 12:43:17 -0700 (PDT)
Ken Tozier <email@hidden> writes:
>
>
I'm writing a custom view class and have everything working except for
>
one bug, when it renders it is semi transparent. I overrode "isOpaque"
>
to return yes and set the color alpha to 1.0 but you can still see
>
through it.
I may be mistaken, but I'm under the impression that overriding isOpaque to
return YES is a performance optimization that tells the system not to bother
redrawing the window surface because you're going to completely overwrite
it anyway. It's not a signal that the system should somehow erase any
areas you don't explicitly draw, which it sounds like you were expecting.
G
_______________________________________________
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.