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
- orderFront:usingGenieTransitionFromRect:- makeKeyAndOrderFront:usingGenieTransitionFromRect:- orderOut:usingGenieTransitionToRect:
Child Windows
- addChildWindow:ordered:usingGenieTransitionFromRect:- removeChildWindow:usingGenieTransitionToRect:
Instance Methods
orderFront:usingGenieTransitionFromRect:
Shows the window using the "Genie Effect.".
- (void)orderFront:(id)senderusingGenieTransitionFromRect:(NSRect)originFrameParameters
- sender
-
Message originator
- originFrame
-
The frame from which to originate the transition
Declared In
NSWindow+MBGenieEffect.hmakeKeyAndOrderFront:usingGenieTransitionFromRect:
Shows the window using the "Genie Effect" and makes it the key window.
- (void)makeKeyAndOrderFront:(id)senderusingGenieTransitionFromRect:(NSRect)originFrameParameters
- sender
-
Message originator
- originFrame
-
The frame from which to originate the transition
Declared In
NSWindow+MBGenieEffect.horderOut:usingGenieTransitionToRect:
Hides the window using the "Genie Effect.".
- (void)orderOut:(id)senderusingGenieTransitionToRect:(NSRect)finalFrameParameters
- 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.haddChildWindow:ordered:usingGenieTransitionFromRect:
Adds a given window as a child window and shows it using the "Genie Effect.".
- (void)addChildWindow:(NSWindow *)childWindowordered:(NSWindowOrderingMode)orderingModeusingGenieTransitionFromRect:(NSRect)originFrameParameters
- childWindow
-
Child window to order
- orderingMode
-
NSWindowAbove:The receiver is ordered immediately in front of the receiverNSWindowBelow:The receiver is placed immediately behind the receiver - originFrame
-
The frame from which to originate the transition
Declared In
NSWindow+MBGenieEffect.hremoveChildWindow:usingGenieTransitionToRect:
Detaches a given child window from receiver using the "Genie Effect.".
- (void)removeChildWindow:(NSWindow *)childWindowusingGenieTransitionToRect:(NSRect)finalFrameParameters
- 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