• 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: Setting position of CALayer doesn't animate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting position of CALayer doesn't animate


  • Subject: Re: Setting position of CALayer doesn't animate
  • From: David Duncan <email@hidden>
  • Date: Tue, 02 Apr 2013 11:35:12 -0700

What class is acting as the layer's delegate?

On Mar 31, 2013, at 8:45 PM, Steve Mills <email@hidden> wrote:

> Trying to learn animation stuff here, but it isn't working as documented. I have a CALayer installed on my view (subclass of ScreenSaverView). Then another CALayer is added as a subLayer on that first layer. At some point after the layer has been initially drawn, I want to move it to a new position, so:
>
> self.subLayer1.position = SSRandomPointForSizeWithinRect(NSMakeSize(100, 100), self.frame);
>
> Rather than using the default animation timing, it jumps directly to the new location. Maybe I'm confused after reading all the docs, but I thought this was what Apple refers to as an implicit transaction, and any changes in the layer properties would be animated with default values. If not, I guess I'll use the more complex explicit transaction methods. Could it be because this is a screensaver plugin instead of an app?
>
> --
> Steve Mills
> Drummer, Mac geek
>
>
> _______________________________________________
>
> 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

--
David Duncan


_______________________________________________

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: Setting position of CALayer doesn't animate
      • From: Steve Mills <email@hidden>
References: 
 >Setting position of CALayer doesn't animate (From: Steve Mills <email@hidden>)

  • Prev by Date: Providing a Service without activating an app
  • Next by Date: Re: UIView final frame after device rotation
  • Previous by thread: Setting position of CALayer doesn't animate
  • Next by thread: Re: Setting position of CALayer doesn't animate
  • Index(es):
    • Date
    • Thread