On May 31, 2006, at 11:24 AM, Scott Thompson wrote:
All this leads to the weird fact, that I have to create a dummy
CGLayer
during the first paint message, which later I can use to create my
actual
CGLayers. I don't think that this is an intended user story of
CGLayer...
I don't understand what you want the "dummy" CGLayer for. You
could simply create the actual CGLayer on the first invocation of
(kEventClassControl, kEventControlDraw) and reuse that layer so
long as the display environment for the view doesn't change.
Depending on how the layer is used, it may be to your advantage to
recreate the layer when the display environment changes (such as
when the window containing the view moves to another screen).
Hey, if Scott says this works, I believe him. :)
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden