GDExternalNibController Class Reference

The GDExternalNibController is a controller used to manage an external nib. More...

#import <GDExternalNibController.h>

Inheritance diagram for GDExternalNibController:
GDBaseObject

List of all members.

Public Member Functions

(void) - close:
 Disposes nibs.
(void) - closeWindows
 A hook you can use to close any windows other than [windows mainWindow].
(void) - disposeNibs
 Dispose of the nibs that were loaded for this controller.
(void) - lazyInitWithGD:andNibName:
 Lazy init this object with a GDDocument, or a GDApplicationController and the nib name to manage.
(void) - lazyInitWithGD:andNibName:andCallback:
 Lazy init this object with a GDDocument, or a GDApplicationController the nib name to manage and a callback.
(void) - loadNibs
 Loads the nib this controller is managing.
(void) - prepare
 Loads the nib this controller is managing.
(void) - resetSwitchFlags
 [internal]
(void) - setDisposesNibsOnEscapeKey:andDisposesNibsOnWindowClose:
 Shortcut to set disposesNibsOnEscapeKey and disposesNibsOnWindowClose.
(void) - setNibName:andCallback:
 Shortcut to set the nib name and callback.
(void) - show
 Loads nibs and sends [[windows mainWindow] makeKeyAndOrderFront:nil].
(void) - showAsSheetForWindow:
 Loads nibs and sends [[NSApplication sharedApplication] beginSheet:[windows mainWindow] modalForWindow:_window modalDelegate:self didEndSelector:(sheetEnded) contextInfo:nil].
(void) - sheetEnded
 When then sheet has ended.
(id) - initWithGD:andNibName:
 Init this object with a GDDocument, or a GDApplicationController and a nib name.
(id) - initWithGD:andNibName:andCallback:
 Init this object with a GDDocument, nib name, and callback.

Protected Attributes

BOOL isSheet
 Whether or not the managed nib was shown as a sheet.
BOOL available
 Whether or not nib resources are available.
BOOL switchingToWindow
 A flag used to manage when a switch from sheet to window is made.
BOOL switchingToSheet
 A flag used to manage when a switch from window to sheet is made.

Properties

NSStringnibName
 The nib name to load.
IBOutlet GDWindowControllerwindows
 A GDWindowController.
BOOL disposesNibsOnWindowClose
 Whether or not to dispose of nibs when a window closes.
BOOL disposesNibsOnEscapeKey
 Whether or not to dispose of nibs when the escape key is pressed.
GDCallbackcallback
 A callback object to use for anything - generally when you "finish" some type of input nib; you'd trigger this callback, and the object that got the callback would handle what was chosen from the nib.

Detailed Description

The GDExternalNibController is a controller used to manage an external nib.

It has shortcuts for showing the nib, or showing it as a sheet, and can auto dispose of the nib resources when it's closed.


Member Function Documentation

- (id) initWithGD: (id)  _gd
andNibName: (NSString *)  _nibName 

Init this object with a GDDocument, or a GDApplicationController and a nib name.

This is for a true alloc/init combination.

Parameters:
_gd A GDDocument or GDApplicationController.
_nibName The managed nib name.
- (id) initWithGD: (id)  _gd
andNibName: (NSString *)  _nibName
andCallback: (GDCallback *)  _callback 

Init this object with a GDDocument, nib name, and callback.

This is for a true alloc/init combination.

Parameters:
_gd A GDDocument or GDApplicationController.
_nibName The managed nib name.
_callback A GDCallback.
- (void) lazyInitWithGD: (id)  _gd
andNibName: (NSString *)  _nibName 

Lazy init this object with a GDDocument, or a GDApplicationController and the nib name to manage.

Parameters:
_gd A GDDocument or GDApplicationController.
_nibName The nib name to manage.
- (void) lazyInitWithGD: (id)  _gd
andNibName: (NSString *)  _nibName
andCallback: (GDCallback *)  _callback 

Lazy init this object with a GDDocument, or a GDApplicationController the nib name to manage and a callback.

Parameters:
_gd A GDDocument or GDApplicationController.
_nibName The nib name to manage.
_callback A GDCallback.
- (void) prepare  

Loads the nib this controller is managing.

This is a hook you can use to do something after the nibs have loaded, to "prepare" them; but generally you probably won't need this.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines