NSWindowController(DTPanelControllerPresenting) Category Reference
| Declared in | NSWindowController+DTPanelControllerPresenting.h |
Overview
Enhancement for NSWindowController to present a sheet modally, similar to iOS.
To use create a NSWindowController subclass with NIB and replace the root NSWindow with an NSPanel. Then from any NSWindowController you call presentModalPanelController: with the panel controller instance as parameter.
Instance Methods
dismissModalPanelController
Dismisses a currently presented modal panel. The panel controller is being released after the out animation has finished.
- (void)dismissModalPanelControllerDiscussion
You can presentModalPanelController: another panel controller right after dismissing one.
Declared In
NSWindowController+DTPanelControllerPresenting.hpresentModalPanelController:
Presents the panel modally, the panel controller is being retained.
- (void)presentModalPanelController:(NSWindowController *)panelControllerParameters
- panelController
A window controller for the sheet, usually an NSWindowController with an NSPanel as window.
Declared In
NSWindowController+DTPanelControllerPresenting.h