MCPConnectionWinCont


Inherits From:
NSWindowController
Declared In:
MCPConnectionWinCont.h


Class Description

This class is the WindowController for the window asking parameters of connection to the user.

It is responsible to set the appropriate value of the MCPDocument instance variables.


Instance Variables

IBOutlet NSTextField *mHostField;
IBOutlet NSTextField *mLoginField;
IBOutlet NSTextField *mDatabaseField;
IBOutlet NSTextField *mPortField;
IBOutlet NSPanel *mPasswordSheet;
IBOutlet NSTextField *mPasswordField;
IBOutlet NSButton *mCreateButton;

mHostFieldNo description.
mLoginFieldNo description.
mDatabaseFieldNo description.
mPortFieldNo description.
mPasswordSheetNo description.
mPasswordFieldNo description.
mCreateButtonNo description.


Method Types

Actions for Interface Builder
For the clear text information.
- doGo:
- doCancel:
- doCreate:
- modifyInstance:
For the password.
- passwordClick:
- askPassword:
- Password
Overrides of NSWindowController method, to adapt to this Window Controller.
- init
- dealloc
- windowDidLoad
Getting the button for creating a DB.
- getCreateButton

Instance Methods

Password

- (NSString *)Password

Send the password (from the NSPasswordField), this method puts the password in the answer (as an autoreleased object), and DELETE it from the NSSecureTextField.


askPassword:

- (IBAction)askPassword:(id)sender

No method description.


dealloc

- (void)dealloc

Gives notification that the WindowController is being deallocated (is it really useful? not yet!).


doCancel:

- (IBAction)doCancel:(id)sender

What to do when the user clicks on the Cancel button of the window.


doCreate:

- (IBAction)doCreate:(id)sender

No method description.


doGo:

- (IBAction)doGo:(id)sender

What to do when the user clicks on the Go button of the window.


getCreateButton

- (NSButton*)getCreateButton

No method description.


init

- (id)init

When inited, open the proper window...


modifyInstance:

- (IBAction)modifyInstance:(id)sender

Action to take when the user modify one of the entry of the New Connection dialog.


passwordClick:

- (IBAction)passwordClick:(id)sender

For the password.


windowDidLoad

- (void)windowDidLoad

What to do once the window has been loaded : update the fields...


Version 1.1 Copyright ©2004 by Serge Cohen. All Rights Reserved. Mon Aug 09 11:00:27 2004