• 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
Transparent colors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transparent colors


  • Subject: Transparent colors
  • From: Dale Miller <email@hidden>
  • Date: Mon, 28 Jul 2008 19:31:37 -0700

I cannot get transparent colors to work. I have tried two cases:
1) I have a view which returns YES to "isTransparent". The log shows the method has been called and responded YES. If I do a NSRectFill after [[NSColor clearColor] set] the view displays as black.
2) If i do a "drawInRect" with the attribute NSBackgroundColorAttributeName set to [NSColor clearColor] (or to a color with an alpha of 0. regardless of the red/green/blue components) the background of the text draws as black. What is it that I don't understand?



Dale Miller email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Transparent colors
      • From: Andrew Merenbach <email@hidden>
    • Re: Transparent colors
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Storing values in dictionary with their address as the key
  • Next by Date: Re: Distributed Objects "connection went invalid while waiting for a reply"
  • Previous by thread: Re: [OT] How do you pronounce .xib?
  • Next by thread: Re: Transparent colors
  • Index(es):
    • Date
    • Thread