• 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 with transparent text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView with transparent text?


  • Subject: Re: NSTextView with transparent text?
  • From: email@hidden
  • Date: Sun, 17 Mar 2002 23:41:15 -0800

I'm trying to make the text in an NSTextView transparent - here's my
code which takes an NSAttributedString. Does anyone have any ideas why
this won't work?

Well, I didn't stare at your code for *too* long, but it looks like you're not doing anything to make the background color for the textview transparent, so your alpha text is just going to "show through" to the solid background color. Am I missing something? In what way exactly does the code you gave "not work"? What are you trying to get the text to show through to -- some view behind the textview, or the superview's drawn content, or whatever is behind the window (i.e. all the way through to the back of the window buffer), or what? Are there scrollviews, clipviews, etc. that might be interfering with your goals by erasing to opaque colors?

Ben Haller
Stick Software
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSTextView with transparent text?
      • From: Doug Brown <email@hidden>
  • Prev by Date: Re: Newbie with stupid question
  • Next by Date: Re: Trouble with preference pane
  • Previous by thread: NSTextView with transparent text?
  • Next by thread: Re: NSTextView with transparent text?
  • Index(es):
    • Date
    • Thread