• 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: Doug Brown <email@hidden>
  • Date: Mon, 18 Mar 2002 15:22:21 -0800

On Monday, March 18, 2002, at 03:00 PM, email@hidden wrote:

Well, I'm still not sure I understand what you want here, but if you just want the text to appear "dimmed", but not to be showing through to anything behind it, I would abandon alpha -- just use a color that has been mixed with a medium gray. It doesn't sound to me like there's any need for transparency in what you're doing.
Maybe [myColor blendedColorWithFraction:0.4 ofColor:[NSColor lightGrayColor]]?

Ben Haller
Stick Software


Hi,

Yes - this does seem to work, thank you! What i was aiming for is kind of difficult to explain, it's kind of like I want the text to look like it's a tinted window, so it is dimmed. But yes, this blendedColorWithFraction:ofColor: method is just perfect for what I need. Thanks!

Doug
_______________________________________________
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.

References: 
 >Re: NSTextView with transparent text? (From: email@hidden)

  • Prev by Date: Re: NSTextView with transparent text?
  • Next by Date: Re: Newbie with stupid question cont.
  • Previous by thread: Re: NSTextView with transparent text?
  • Next by thread: Trouble with preference pane
  • Index(es):
    • Date
    • Thread