black flashes when updating CALayer content
black flashes when updating CALayer content
- Subject: black flashes when updating CALayer content
- From: Markus Spoettl <email@hidden>
- Date: Thu, 24 Feb 2011 12:50:33 -0500
Hello,
I have a custom layer-hosting NSView with a nested layer hierarchy. The view updates one if its layers in response to mouse-dragging to highlight a selection of things it displays.
Sometimes - randomly and very infrequently - I get a very flash of complete blackness or whiteness in the same screen area the layer it updated. I would guess it lasts only one screen refresh cycle, so the flash is really very brief.
Has anyone seen something similar?
I can't recreate it, I don't what causes it, I only know it has something to do with my drawing the layer or updating the layer and it only happens when I drag the mouse and update the selection layer.
My layers are all delegate-drawn, I'm not using transforms or animations, I don't use filters or background filters on any of the layers. Content animation is turned off as well (via -actionForLayer:forKey:).
I'm at a complete loss here. I would appreciate any input/wild speculation as to what could/may cause an effect like this. I'd be happy to supply more/any information and a compiled test application, though - given my inability to reliably recreate the issue - you could never see it.
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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