views:

216

answers:

2

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?

A: 

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.

MarkPowell
Core Animation was added in Leopard, not Snow Leopard.
Chuck
You're right. My bad. Fixed.
MarkPowell
+6  A: 

NSViewAnimation, despite its name, works on windows as well. There's a key you can use to perform fade-out animations.

Peter Hosey
Thank you for the answer, I will look into it shortly
alexy13