• 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: CALayer containing a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer containing a view


  • Subject: Re: CALayer containing a view
  • From: Kenneth Ballenegger <email@hidden>
  • Date: Sat, 29 Nov 2008 19:27:00 +0200

Wow, your email just made me realize that all I needed was this:

	[myLayer addSublayer:[gameScreenView layer]];

I never thought it would be this easy! Thanks for the enlightenment. :)

I thought that this would only work to add CA content of a CA-backed view, and not subviews, but it seems I was wrong.

-Ken

---
Kenneth Ballenegger
www.seoxys.com
kenneth.ballenegger.com
email@hidden

Azure Talon Software
www.azuretalon.com
email@hidden

On 29 Nov 2008, at 5:53 PM, David Duncan wrote:

It sounds like you just want to set that your root view wants to be layer backed. You shouldn't have to do anything special for that, just call -setWantsLayer:YES in the view at the root of the hierarchy.

_______________________________________________

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


References: 
 >CALayer containing a view (From: Kenneth Ballenegger <email@hidden>)
 >Re: CALayer containing a view (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Keystrokes for non-ascii letters
  • Next by Date: Re: Text blurred in application
  • Previous by thread: Re: CALayer containing a view
  • Next by thread: Core Data/Bindings issue
  • Index(es):
    • Date
    • Thread