Re: NSTextView drawing background
Re: NSTextView drawing background
- Subject: Re: NSTextView drawing background
- From: Graham <email@hidden>
- Date: Fri, 6 May 2005 16:39:52 -0400
You got it, it's the NSClipView that is drawing its background. Thanks G On May 6, 2005, at 4:24 PM, Douglas Davidson wrote:
On May 6, 2005, at 12:18 PM, Graham wrote: I have created an NSTextView subclass in order to handle hyperlinks. For some reason I cannot prevent it from drawing it's background. I am calling setDrawsBackground(false); but it does not work, it paints it's background in whatever color I specify in IB. Oddly enough if I set the background color to something, it does ignore that color unless I setDrawsBackground(true) as expected in which case it draws the background in that color. I've even tried setting the background color to NSColor.clearColor().
This must be something dumb, so please point it out!
The text view you drag out in IB is contained in a scroll view, which may perhaps be drawing its own background.
Douglas Davidson
|
_______________________________________________
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