CALayer weirdness
CALayer weirdness
- Subject: CALayer weirdness
- From: Francois-Jean De Brienne <email@hidden>
- Date: Sat, 08 Mar 2008 00:34:28 -0500
I have an NSView which has a CALayer (we will call parent). "parent"
seems to work fine, since whenever I draw in it, the results are
displayed.
This parent CALayer instanciates a number of child CALayers which are
actually of a class I created (that derives from CALayer). These child
CALayers implement the drawInContext method.
Whenever parent is redrawn, I can briefly see the result of the
children's drawInContext method. However, a fraction of a second
later, this disappears.
ex. 1: If parent draws nothing, I see the children's drawInContext
result flash briefly and return to blank.
ex. 2: If parent draws something, I see parent's draw results,
followed by a brief flash of the children's draw result, finally
replaced by the parent's draw results.
I'm quite sure nothing else in my code draws over parent, since ex.
2's end result would be the same as ex. 1 end result. Could it be that
when parent is not drawing something, it's NSView draws over it? I
wouldn't think so.
Any ideas?
_______________________________________________
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