Greetings,

I posted this question to the Mac OS X/Graphic/Core Animation forum several weeks ago and no one's been able to answer it, so I'm trying here.

I have a fairly complex hierarchy of NSViews (window -> split view -> tab view, which hosts a variety of table, outline, browser, and matrix views). Many of these subviews host CALayers that perform a variety of animation. So far, so good.

Now, there's a sister NSView that overlaps the split view (yes, it's "above" the split view, I create it programmatically with -addSubview:positioned:relativeTo: using NSWindowAbove). It too hosts an CALayer that's used to overlay semitransparent graphics on top of the other views, illustrating relationships between items in the other table views.

Here's the weird thing: sometimes, but not all the time, the CALayers in the nested subviews draw ON TOP OF the CALayers in the top-level overlay view. It's almost as if whatever the last CALayer that gets drawn, draws on top of all of the other CAlayers in the window. This seems really strange, because within a single CALayer, sublayers appear to be strictly ordered and always draw over the layers behind them.

Anyway, I'm looking for a solution that will get my overly graphics view to always draw it's CALayers on top of the images drawn by the nested views behind it.

--
James Bucanek

_______________________________________________

Cocoa-dev mailing list ([email protected])

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