• 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
alpha color and drawRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

alpha color and drawRect


  • Subject: alpha color and drawRect
  • From: Valerio Ferrucci <email@hidden>
  • Date: Mon, 3 Apr 2006 15:38:33 +0200

Hi,
I have a window with backGroundcolor completely transparent.

[myWin setBackgroundColor:[NSColor colorWithDeviceRed:22. green:22. blue:22. alpha:0]];

then I add to it a subView to draw something inside. (all this is inspired by the overlay win apple example).

The view's drawRect routine simply draw a little centered rect with the semi-transparent color:
[NSColor colorWithDeviceRed:22. green:22. blue:22. alpha:.3]


The problem is:
the centered rect doesn't remain transparent. Instead it becomes completely in 2 or 3 redraws white!!.


Any idea


================================================================== Valerio Ferrucci Tabasoft Sas email@hidden http://www.tabasoft.it


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: alpha color and drawRect
      • From: Stephane <email@hidden>
  • Prev by Date: Re: "Yellow Box" resurrection. Should we hold our breath for it?
  • Next by Date: Re: alpha color and drawRect
  • Previous by thread: Moderator EOT (Re: "Yellow Box" resurrection. Should we hold our breath for it?)
  • Next by thread: Re: alpha color and drawRect
  • Index(es):
    • Date
    • Thread