• 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 doesn't resize immediately
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer doesn't resize immediately


  • Subject: Re: CALayer doesn't resize immediately
  • From: "Bertrand Landry-Hetu" <email@hidden>
  • Date: Sun, 11 Nov 2007 00:17:14 -0800

2007/11/8, Scott Anguish <email@hidden>:
>
> On Nov 8, 2007, at 6:42 AM, Bertrand Landry-Hetu wrote:
>
> >> The other way I found is to disable the default animation for that
> >> property:
> >>
> >> NSDictionary * disabledAnimation = [NSDictionary
> >> dictionaryWithObjectsAndKeys: [NSNull null], @"bounds", [NSNull
> >> null],
> >> @"position", nil];
> >>
> >> myLayer.actions = disabledAnimation;
> >
>
>
> You can also just disable the actions for that transaction
>
> http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Transactions.html#/
> /apple_ref/doc/uid/TP40006096-DontLinkElementID_56
>
> [CATransaction begin];
> [CATransaction setValue:(id)kCFBooleanTrue
> forKey:kCATransactionDisableActions];
> [aLayer removeFromSuperlayer];
> [CATransaction commit];
>
>
> (that maybe should be under implicit animations rather than explicit..
> I'll ave to think about that)

Is that supposed to work from within a [CALayoutManager
layoutSublayersOfLayer:] callback? I usually get a crash when
commiting inside it, so I assumed I wasn't supposed to do so. I guess
I should have investigated further.
_______________________________________________

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 doesn't resize immediately (From: Axel Péju <email@hidden>)
 >Re: CALayer doesn't resize immediately (From: Thomas Schlömer <email@hidden>)
 >Re: CALayer doesn't resize immediately (From: Axel Péju <email@hidden>)
 >Re: CALayer doesn't resize immediately (From: "Bertrand Landry-Hetu" <email@hidden>)
 >Re: CALayer doesn't resize immediately (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: SenTestingKit fails when using CG-Only (Fixed)
  • Next by Date: Re: SenTestingKit fails when using CG-Only (Fixed)
  • Previous by thread: Re: CALayer doesn't resize immediately
  • Next by thread: Re: CALayer doesn't resize immediately
  • Index(es):
    • Date
    • Thread