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

Transparency Problems


  • Subject: Transparency Problems
  • From: Kyle Moffett <email@hidden>
  • Date: Tue, 17 Sep 2002 18:39:47 -0400

I am stumped over this. It is probably something simple
that I missed, but I need another set of eyes to look over
it:

I would like a normal, titled, bordered window, with all
controls enabled, that has a small portion of it with the
windows below it showing through. This can be
achieved one way:

[wind setBackgroundColor:[NSColor clearColor]];
[wind setAlphaValue:0.9999999]; // If set to 1.0 this does not work
[wind setOpaque:NO];

Then root views that are transparent show clear through the window.
There is an optimizing technique so that if the window alpha is 1.0,
the translucent view is filled with its bg color, but as though the bg
alpha value were 1.0. However, if i set the window's alpha value to
0.9999999, then the window looks solid, and the view looks
transparent, but moving the window slows down tremendously, due
to the fact that the entire thing is very very slightly transparent.

I tried another method that drew a root view filled with clearColor, then
drew everything over that, but it was still not transparent.

BTW, I need 10.1 compatability.

Thanks,
Kyle Moffett
_______________________________________________
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.

  • Prev by Date: Re: Obj-C question: protocol usage and inheritance
  • Next by Date: Re: 10.2 PB crashing [solved]
  • Previous by thread: Transparency Problems
  • Next by thread: Subclassing NSArray
  • Index(es):
    • Date
    • Thread