|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
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? ;)
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.