• 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: Transparent white NSView (Solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent white NSView (Solved)


  • Subject: Re: Transparent white NSView (Solved)
  • From: Thomas Engelmeier <email@hidden>
  • Date: Wed, 14 Jun 2006 16:37:23 +0200


On Jun 14, 2006, at 2:15 PM, I. Savant wrote:

Well ... you're first drawing the whole background with +controlDarkShadowColor, then you're drawing atop *that* color with an alpha-faded white. What'd you expect when combining those colors? :-)

Well, actually, I use NSFrameRect, so that part is correct.

Also, when trying to inset a rectangle, use NSInsetRect().

Thanks for the advice..

    [[NSColor colorWithDeviceWhite:1.0 alpha:.3] set];
    NSRectFill(tRect );

and here was the show stopper - NSRectFill treats the alpha in some odd way, [NSBezierPath fillRect:tRect]; is the solution..


Regards,
	Tom_E
_______________________________________________
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: 
 >Transparent white NSView (From: Thomas Engelmeier <email@hidden>)
 >Re: Transparent white NSView (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Drawing text on top of a progress bar
  • Next by Date: Re: Position a window in center & under the menubar.
  • Previous by thread: Re: Transparent white NSView
  • Next by thread: Re: Transparent white NSView
  • Index(es):
    • Date
    • Thread