• 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: Douglas Davidson <email@hidden>
  • Date: Fri, 6 May 2005 13:24:20 -0700


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

  • Follow-Ups:
    • Re: NSTextView drawing background
      • From: Graham <email@hidden>
References: 
 >NSTextView drawing background (From: Graham <email@hidden>)

  • Prev by Date: Re: CoreData issue when updating a file format
  • Next by Date: Re: NSArray usage question.
  • Previous by thread: NSTextView drawing background
  • Next by thread: Re: NSTextView drawing background
  • Index(es):
    • Date
    • Thread