Re: Transparent colors
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