• 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: semi-transparent NSScrollView/NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: semi-transparent NSScrollView/NSTextView


  • Subject: Re: semi-transparent NSScrollView/NSTextView
  • From: Mike Ferris <email@hidden>
  • Date: Fri, 13 Dec 2002 12:29:14 -0800

NSTextView, I am pretty sure, does not composite the background. So if you have it draw any background at all, it will be opaque and any alpha value is the color will be basically ignored.

You may need to make the text view not draw any background (and the scroll view if you have one) and then make them all a subview of a custom view you write that will composite a partially transparent background color...

Mike


Begin forwarded message:

From: Daniel Delp <email@hidden>
Date: Fri Dec 13, 2002 10:49:17 AM US/Pacific
To: email@hidden, <email@hidden>
Subject: semi-transparent NSScrollView/NSTextView

Is it possible to set the background of either an NSScrollview or NSTextview to be semi-transparent? I have tried
[textView setDrawsBackground:TRUE];
[textView setBackgroundColor:[NSColor colorWithCalibratedRed: 0.0 green:0.0 blue:0.0 alpha:0.75]];

with the scrollview set the not draw the background, and I tried with the textview not drawing background and the scrollview drawing the color. In both tries, the background appeared a solid color.
Thank you
-Daniel Delp
_______________________________________________
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.
_______________________________________________
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: 
 >semi-transparent NSScrollView/NSTextView (From: Daniel Delp <email@hidden>)

  • Prev by Date: Re: NSCopyBits tain't clear (its a little better now...)
  • Next by Date: Re: How to archive opaque CF objects
  • Previous by thread: semi-transparent NSScrollView/NSTextView
  • Next by thread: NSSplitView complete madness
  • Index(es):
    • Date
    • Thread