• 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: NSTextView drawing background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTextView drawing background (From: Graham <email@hidden>)
 >Re: NSTextView drawing background (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: NSArray usage question.
  • Next by Date: Re: NSArray usage question.
  • Previous by thread: Re: NSTextView drawing background
  • Next by thread: NSArray usage question.
  • Index(es):
    • Date
    • Thread