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

Setting position of CALayer doesn't animate


  • Subject: Setting position of CALayer doesn't animate
  • From: Steve Mills <email@hidden>
  • Date: Sun, 31 Mar 2013 22:45:36 -0500

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

  • Follow-Ups:
    • Re: Setting position of CALayer doesn't animate
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Stubborn setValue:forUndefinedKey error
  • Next by Date: WebView find panel/bar implementation
  • Previous by thread: Re: Stubborn setValue:forUndefinedKey error
  • Next by thread: Re: Setting position of CALayer doesn't animate
  • Index(es):
    • Date
    • Thread