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

Re: Transparent colors


  • Subject: Re: Transparent colors
  • From: Andrew Merenbach <email@hidden>
  • Date: Mon, 28 Jul 2008 19:40:05 -0700

Hi, Dale,

Have you considered [NSBezierPath fillRect:]?

Cheers,
	Andrew

On Jul 28, 2008, at 7:31 PM, Dale Miller wrote:

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >Transparent colors (From: Dale Miller <email@hidden>)

  • Prev by Date: Re: Transparent colors
  • Next by Date: Re: Transparent colors
  • Previous by thread: Re: Transparent colors
  • Next by thread: NSButton event waits until setEnabled is executed?
  • Index(es):
    • Date
    • Thread