• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unwanted transparency in custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Unwanted transparency in custom view
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Webdings et.al. ?
  • Next by Date: Re: Protecting Software w/ Software License Keys...
  • Previous by thread: Re: Unwanted transparency in custom view
  • Next by thread: Re: Unwanted transparency in custom view
  • Index(es):
    • Date
    • Thread