• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Window Movement Animations ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Window Movement Animations ??? (From: Mark Thomas <email@hidden>)

  • Prev by Date: NSWindow delegate handling keyboard events
  • Next by Date: Re: NSOutlineView Column Empty
  • Previous by thread: Window Movement Animations ???
  • Next by thread: How to display two windows in one nib file(not the main nib file)
  • Index(es):
    • Date
    • Thread