Re: NSTextView with 50% transparent background
Re: NSTextView with 50% transparent background
- Subject: Re: NSTextView with 50% transparent background
- From: Douglas Davidson <email@hidden>
- Date: Fri, 11 Apr 2003 10:42:16 -0700
On Friday, April 11, 2003, at 2:52 AM, Jirome Foucher wrote:
I have a NSTextView with some text drawn in plain black and I wish to
set the background to 50% transparent white.
Behind my NSTextView is a NSImageView.
In Interface Builder, I modify the background color to 50% white. And
in Interface Builder, it just looks like it should.
But when I compile and run my application (or test the interface in
IB), the result is somewhat different : the background is solid, and
gray.
NSTextView should support transparent and partially transparent
backgrounds. However, it's a little complicated; when you drag out a
text view in IB, what you get is a text view in a scroll view, and the
scroll view may draw a background as well. You might need to do some
extra programmatic work.
Douglas Davidson
_______________________________________________
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.