• 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 bounds with ResizeAspect mask?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer bounds with ResizeAspect mask?


  • Subject: Re: CALayer bounds with ResizeAspect mask?
  • From: David Duncan <email@hidden>
  • Date: Thu, 9 Oct 2008 09:12:04 -0700

On Oct 8, 2008, at 11:09 PM, Colin Doncaster wrote:

so I would turn off the animations by updating the frame and position within

[CATransaction begin];
[CATransaction setValue: (id)kCFBooleanTrueforKey:kCATransactionDisableActions];
[CATransaction commit];


or is there another more correct way?
this seems to work, but I wasn't too sure if there's a wantsAnimation type property that could be called on a layer to always turn off animation on that layer.


This if fine if you don't always want to disable a particular animation. If you wish to alter or disable an animation in all contexts, then read the docs on -actionForKey: which describes several methods you can use to disable a particular animation for a layer or group of layers.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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 bounds with ResizeAspect mask? (From: Colin Doncaster <email@hidden>)
 >Re: CALayer bounds with ResizeAspect mask? (From: Matt Long <email@hidden>)
 >Re: CALayer bounds with ResizeAspect mask? (From: Colin Doncaster <email@hidden>)
 >Re: CALayer bounds with ResizeAspect mask? (From: Matt Long <email@hidden>)
 >Re: CALayer bounds with ResizeAspect mask? (From: Colin Doncaster <email@hidden>)

  • Prev by Date: Re: Optimized pixel manipulation
  • Next by Date: Re: NSDrawer detached from window?
  • Previous by thread: Re: CALayer bounds with ResizeAspect mask?
  • Next by thread: NSUndoManager f@*#ing up Core Data database
  • Index(es):
    • Date
    • Thread