Mailing Lists: Apple Mailing Lists

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

Re: How to get an CGLayer from an HIView?




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

This email sent to email@hidden
References: 
 >How to get an CGLayer from an HIView? (From: "Olaf Krzikalla" <email@hidden>)
 >Re: How to get an CGLayer from an HIView? (From: Scott Thompson <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.