|
| [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? ;)
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.