• 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 layer-backed views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transparent layer-backed views


  • Subject: Transparent layer-backed views
  • From: Zbigniew Sobiecki <email@hidden>
  • Date: Sat, 14 Nov 2009 18:07:53 +0100


Hello,

I'm trying to perform some simple animations using CA layers on transparent window and corresponding view. The problem I have is that every time I turn on the layer backing (either through wantsLayer in code, or with IB) the view stops being transparent.

I've tried setting layer's backgroundColor to something with low alpha and few other rather obvious approaches, but it looks to me that I'm missing something.

To illustrate the problem better, let's just use sample Round Transparent Window project from Apple (http://developer.apple.com/Mac/library/samplecode/RoundTransparentWindow/index.html ).

By default it looks like this:

http://slonce.com/no-layer.png

But with layer added (just this single line in awakeFromNib), the transparency goes away:

http://slonce.com/with-layer.png

Could anyone please give me some hints on this?


Thanks,

-Z
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Transparent layer-backed views
      • From: Dave Keck <email@hidden>
  • Prev by Date: Question about IB, filterPredicate, and bindings
  • Next by Date: Re: Advice On Subclass vs. Delegate
  • Previous by thread: Question about IB, filterPredicate, and bindings
  • Next by thread: Re: Transparent layer-backed views
  • Index(es):
    • Date
    • Thread