NSWindowController(DTPanelControllerPresenting) Category Reference
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.
Presenting Modal Panels
Dismisses a currently presented modal panel. The panel controller is being released after the out animation has finished.
You can presentModalPanelController: another panel controller right after dismissing one.
Presents the panel modally, the panel controller is being retained.
- (void)presentModalPanelController:(NSWindowController *)panelController
A window controller for the sheet, usually an NSWindowController with an NSPanel as window.