Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CALayer weirdness



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.