• 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: Core Animation animations stop prematurely at random
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 11:58:29 -0700

On Tue, May 17, 2011 at 11:35 AM, Bill Cheeseman <email@hidden> wrote:
> I agree that the explanation doesn't logically lead to a prohibition on creating layers in -initWithFrame:. That's why I initially created them there, deferring only the construction of the layer tree to -awakeFromNib. But I suffered random failures -- in fact, the application failed more often than not. The randomness is consistent with my doing something to which the phrase "undefined behavior" is often applied in Apple documentation. Now that I've moved the layer creation to -awakeFromNib, however, my application is working correctly 100% of the time.

You could also try using -makeBackingLayer. That's useful if your view
can be used both programmatically and in a nib.

--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

  • Follow-Ups:
    • Re: Core Animation animations stop prematurely at random
      • From: Bill Cheeseman <email@hidden>
References: 
 >Core Animation animations stop prematurely at random (From: Bill Cheeseman <email@hidden>)
 >Re: Core Animation animations stop prematurely at random (From: Bill Cheeseman <email@hidden>)
 >Re: Core Animation animations stop prematurely at random (From: David Duncan <email@hidden>)
 >Re: Core Animation animations stop prematurely at random (From: Bill Cheeseman <email@hidden>)
 >Re: Core Animation animations stop prematurely at random (From: David Duncan <email@hidden>)
 >Re: Core Animation animations stop prematurely at random (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Core Animation animations stop prematurely at random
  • Next by Date: Re: Why RunLoop?
  • Previous by thread: Re: Core Animation animations stop prematurely at random
  • Next by thread: Re: Core Animation animations stop prematurely at random
  • Index(es):
    • Date
    • Thread