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

Transparent white NSView


  • Subject: Transparent white NSView
  • From: Thomas Engelmeier <email@hidden>
  • Date: Wed, 14 Jun 2006 11:23:54 +0200

Hi,

I am implementing an assistant - type application.

All Apple variants (Network Diagnostics, Mail Account setup, Network Setup Assistant) have a transparent white view above some background artwork - which I try to mimick with a custom NSView. Except my code produces an dirty gray background instead of an neat lighter bg.
I'm running out of ideas how to cure it. My code looks like:


- (BOOL) isOpaque
{
	return NO;
}

- (void) drawRect:(NSRect) frame
{
    NSRect tRect=[self bounds];
	[[NSColor controlDarkShadowColor] set];
	NSFrameRect(tRect);
    tRect.origin=NSMakePoint(1,1);

    tRect.size.width-=2;
    tRect.size.height-=2;
    [[NSColor colorWithDeviceWhite:1.0 alpha:.3] set];
    NSRectFill(tRect );
       // doesn't help, either:
	// NSRectFillUsingOperation(tRect, NSCompositePlusLighter );
}

TIA,
	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


  • Follow-Ups:
    • Re: Transparent white NSView
      • From: Uli Kusterer <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: Drawing text on top of a progress bar
  • Previous by thread: NSBeginAlertSheet and its thread
  • Next by thread: Re: Transparent white NSView
  • Index(es):
    • Date
    • Thread