Re: Core Animation animations stop prematurely at random
Re: Core Animation animations stop prematurely at random
- Subject: Re: Core Animation animations stop prematurely at random
- From: Kyle Sluder <email@hidden>
- Date: Tue, 17 May 2011 10:28:59 -0700
On Tue, May 17, 2011 at 10:21 AM, Keith Duncan <email@hidden> wrote:
>
>> The basic problem comes about when a view in the nib has wantsLayer=NO, but the view itself always wants to be layer backed. If you setWantsLayer:YES inside of -initWithFrame:, then by the time you get to -awakeFromNib wantsLayer=NO again
>
> Would there be any issue with overriding -setWantsLayer: to drop the [view setWantsLayer:NO] invocation, only allowing [view setWantsLayer:YES] to pass through to the NSView implementation?
Well, there's no guarantee that nib loading goes through -setWantsLayer:.
--Kyle Sluder
_______________________________________________
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