-
Notifications
You must be signed in to change notification settings - Fork 38
How to use nsview.layer? #78
Comments
cc @pcwalton |
@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. |
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: