NSWindow(GenieEffect) Category Reference

NSWindow+MBGenieEffect.h

Overview

Provides a Cocoa interface to Carbon's TransitionWindow() function, enabling the use of the "Genie Effect.".

Tasks

Normal Windows

Child Windows

Instance Methods

orderFront:usingGenieTransitionFromRect:

Shows the window using the "Genie Effect.".

- (void)orderFront:(id)senderusingGenieTransitionFromRect:(NSRect)originFrame
Parameters
sender

Message originator

originFrame

The frame from which to originate the transition

Declared In
NSWindow+MBGenieEffect.h

makeKeyAndOrderFront:usingGenieTransitionFromRect:

Shows the window using the "Genie Effect" and makes it the key window.

- (void)makeKeyAndOrderFront:(id)senderusingGenieTransitionFromRect:(NSRect)originFrame
Parameters
sender

Message originator

originFrame

The frame from which to originate the transition

Declared In
NSWindow+MBGenieEffect.h

orderOut:usingGenieTransitionToRect:

Hides the window using the "Genie Effect.".

- (void)orderOut:(id)senderusingGenieTransitionToRect:(NSRect)finalFrame
Parameters
sender

Message originator

finalFrame

The frame to transition to

Bug

After the transition, the window is briefly shown again in its original position.

Declared In
NSWindow+MBGenieEffect.h

addChildWindow:ordered:usingGenieTransitionFromRect:

Adds a given window as a child window and shows it using the "Genie Effect.".

- (void)addChildWindow:(NSWindow *)childWindowordered:(NSWindowOrderingMode)orderingModeusingGenieTransitionFromRect:(NSRect)originFrame
Parameters
childWindow

Child window to order

orderingMode

NSWindowAbove: The receiver is ordered immediately in front of the receiver NSWindowBelow: The receiver is placed immediately behind the receiver

originFrame

The frame from which to originate the transition

Declared In
NSWindow+MBGenieEffect.h

removeChildWindow:usingGenieTransitionToRect:

Detaches a given child window from receiver using the "Genie Effect.".

- (void)removeChildWindow:(NSWindow *)childWindowusingGenieTransitionToRect:(NSRect)finalFrame
Parameters
childWindow

Child window to detach

finalFrame

The frame to transition to

Bug

After the transition, the window is briefly shown again in its original position.

Declared In
NSWindow+MBGenieEffect.h