• 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: Transparency?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Transparency?


  • Subject: RE: Transparency?
  • From: Glenn Andreas <email@hidden>
  • Date: Wed, 21 Apr 2004 11:23:40 -0500

At this point, nothing is in the NSBox. If I remove the NSRectFill
call, I end up with an invisible box.

I just tried the following which also didn't work. The color of the box
is still gray instead of being completely white.

[[NSColor whiteColor] set];
NSRecFill(rect);
[[NSColor colorWithCalibratedWhite:1.0 alpha:0.2] set];
NSRectFill(rect);

Installer uses a Custom View so everything appears to be programmatic.


Isn't 1.0 = black in colorWithCalibratedWhite:alpha:? colorWithDeviceWhite:alpha: docs say that "in postscript, this color space corresponds directly to the device-dependant operator setgray" (and "1.0 setgray" will produce solid black).

So [[NSColor colorWithCalibratedWhite:1.0 alpha:0.2] set] says "solid black, 20% alpha", which, will produce a gray box.

--
Glenn Andreas email@hidden mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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: Transparency? (From: "Huyler, Christopher M" <email@hidden>)

  • Prev by Date: Re: Using POSIX threads with Cocoa?
  • Next by Date: Re: Locking from within an enumerator
  • Previous by thread: Re: Transparency?
  • Next by thread: Types of bundled files
  • Index(es):
    • Date
    • Thread