Re: CALayer doesn't resize immediately
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