Re: CALayer instant content update

2010-09-13 Thread David Duncan
On Sep 13, 2010, at 7:58 AM, Matt Neuburg wrote: > I would recommend that Apple improve the documentation https://bugreport.apple.com/ or the feedback links at the bottom of every page in the documentation. If there isn't a bug, the issue doesn't exist. -- David Duncan _

Re: CALayer instant content update

2010-09-13 Thread Matt Neuburg
On Fri, 3 Sep 2010 10:44:44 -0700, David Duncan said: >If you want to have a layer that doesn't animate (crossfade) content changes, then set the layer's actions dictionary like so: > >layer.actions = [NSDictionary dictionaryWithObject:[NSNull null] forKey:@"contents"]; > >This will prevent anima

Re: CALayer instant content update

2010-09-03 Thread Markus Spoettl
On Sep 3, 2010, at 1:44 PM, David Duncan wrote: > On Sep 3, 2010, at 10:36 AM, Markus Spoettl wrote: > >> I have delegate-drawn layers (on the main thread) whose content I want to >> change without animation, I don't want to a change transition of any kind in >> some situations. Up until now I'm

Re: CALayer instant content update

2010-09-03 Thread David Duncan
On Sep 3, 2010, at 10:36 AM, Markus Spoettl wrote: > I have delegate-drawn layers (on the main thread) whose content I want to > change without animation, I don't want to a change transition of any kind in > some situations. Up until now I'm using this: If you want to have a layer that doesn't

CALayer instant content update

2010-09-03 Thread Markus Spoettl
Hello, during the recent discussion "CALayer -drawInContext and GCD" it came up that you should not use [CATransation flush] and the argument made a point that it wasn't necessary and should be avoided because of negative consequences. I'm a little confused now as it seems -flush does help me