Re: Window Movement Animations ???
Re: Window Movement Animations ???
- Subject: Re: Window Movement Animations ???
- From: Todd Yandell <email@hidden>
- Date: Sat, 19 Feb 2005 01:32:42 -0600
Hi Mark,
Animating a Cocoa window's movement is really simple. Just use NSWindow's
setFrame:display:animate: message, and Cocoa will automatically resize and reposition the window using a smooth animation. This is what's used in several of Apple's apps (like System Preferences) and it's a really nice effect. Fading windows in and out is pretty simple as well. It's not available as an NSWindow method, but it can be done fairly easily using an NSTimer and NSWindow's
setAlpha: method.
Hope that helps!
Todd Yandell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden