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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to