I’m provided with a CALayer* and would like to know if it’s possible to dynamically create a NSWindow and show it on the layer?
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes.
Nope.
You can make a layer that knows about the window or its content view and, when told to draw, tells the window’s content view to draw, or you could take a screenshot of the window and set it as the layer’s contents. But you can’t put a window into a layer.