Drawing in CALayers
Drawing in CALayers
- Subject: Drawing in CALayers
- From: Gordon Apple <email@hidden>
- Date: Tue, 17 Jun 2008 14:21:27 -0500
I'm trying to migrate to using CALayers and having nothing but problems.
I'm currently trying to use two simple CALayers, one for accumulated prior
layers (my own list of draw lists) and one for the current layer. I'm using
Cocoa to draw. No filters or transitions yet, just simple drawing. I'll
keep my first questions simple:
1. How do you deal with flipped NSView coordinates? The drawLayer call
gets the NSGraphicsContext using nsGraphicsContext = [NSGraphicsContext
graphicsContextWithGraphicsPort:ctx flipped:YES ] but seems to ignore the
flipped parameter for either YES/NO. Am I going to have to implement a
transform to make this work right?
2. Can you mix standard view drawing with CALeyers? If so, what is the
draw order of the view drawing relative to the CALayers? (In spite of the
reference to such, the view drawing guide still doesn't cover CALayers.) I
prefer to do interactive drawing into the top layer in the same manner as I
currently do in the view.
_______________________________________________
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