Cocoa animation for flipping from one view to another along the vertical axis
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
NSWindow+Additions.h First code commit. Yay! Dec 10, 2010
NSWindow+Additions.m First code commit. Yay! Dec 10, 2010
README Added convenience method. Updated README. Jan 8, 2011


This is a NSWindow extension that allows you to flip from one window to another along the vertical axis, much like what is standard on iOS.


NSWindow* from = ...
NSWindow* to = ...

//To support performSelector:withObject:afterDelay:, use:

FlipArguments* flipArgs = [[FlipArguments alloc] initWithToWindow:to flipDuration:2.5 shadowed:NO];

//0.0 is used to fire this on the next runloop iteration. This makes it so a button will be in its "pressed" state if you use a button to do the flip.
[from performSelector:@selector(flipWithArguments) withObject:flipArgs afterDelay:0.0]; 

//To execute the flip immediately, use:

[from flipToWindow:to withDuration:2.5 shadowed:NO];