-
Notifications
You must be signed in to change notification settings - Fork 232
How to use nsview.layer? #164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@paulrouget Did you call |
Yes. |
For the first snippet, any chance you got a stack trace? For the second snippet, did you call Sorry if the questions seem obvious, just eliminating the low-hanging fruit. |
You might have to do something special to the NSWindow in order to get Core Animation to work. I think Interface Builder does this for you if you use nibs, but if you're setting things up manually there may be something magic you have to invoke. |
I use nibs.
I'll try to get a backtrace and try these later. |
Make travis compile again. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/164) <!-- Reviewable:end -->
Friday Mar 17, 2017 at 08:08 GMT
Originally opened as servo/core-graphics-rs#78
I'm trying to animate a Cocoa nsview via its layer. But with no luck. What would it take to make it work?
I'm trying for example to set the opacity of a layer. All the conditions to enable core animation are met.
This code crashes:
And this code behaves in a strange way:
The text was updated successfully, but these errors were encountered: