Reputation: 4299
Hello I am wondering if there is a way to animate a window in objective-c using core-animation or quartz. I would like to fade out a window when I close it. My OSX operating system is Tiger.
Edit: Is it possible to do the same with an applescript application in Xcode by somehow calling a method from objective-c or another way?
Upvotes: 2
Views: 1387
Reputation: 16530
Core Animation was added to OS X with Leopard. It's the same API as on the iPhone. There are a multitude of iPhone Core Animation tutorials on the web that should get you started.
This tutorial is OS X specific and shows multiple animation types, including fading.
Upvotes: 0
Reputation: 96323
NSViewAnimation, despite its name, works on windows as well. There's a key you can use to perform fade-out animations.
Upvotes: 6