• 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: Animation and crossfading of windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Animation and crossfading of windows


  • Subject: Re: Animation and crossfading of windows
  • From: Oskar Lissheim-Boethius <email@hidden>
  • Date: Sat, 31 Jul 2004 21:10:33 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2004-07-31, at 20.04, Shaun Wexler wrote:
NSWindow can animate its frame changes, and you can register for notifications to be received at every redraw. Cache a NSImage of the before- and after- content views, and during an animated resize in -drawRect: simply dissolve between them using a fraction based on the before/after frame size ratio, rather than drawing the actual window content. Notice that the System Preferences window is a fixed width, and as each new pane fades in, it stays attached to the window origin in the bottom left when animating the frame... simple? ;)

Yeah, pretty simple. Thanks to you and Scott for pointing out the OpenGL and NSImage solutions. I guess OpenGL would be faster among the two (at least until Tiger and CoreImage arrives *drooling* ).


Yours sincerely,

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
O S K A R L I S S H E I M - B O E T H I U S
Composer, Sound & Webdesigner
Kingdom of Sweden
Home: www.avocade.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBC+6q4hASvc4EmvQRAm7PAJ9XDBbXQVXMkLCMRs1UvGkxcf0yQQCghPDd
vPGTyoUuLm9ZZ9NbAkAs2z4=
=+c1l
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: mouse pointer for drag copy
  • Next by Date: Re: Document object talking to main application object
  • Previous by thread: Re: Animation and crossfading of windows
  • Next by thread: Add keys programatically to NSArrayController?
  • Index(es):
    • Date
    • Thread