Copyright ã1998 by Robert Frank  All Rights Reserved.

NS_DEV_DOCFOR:objc_class:Text;,NIBoolProperty

Inherits From:	NIProperty : Object

Declared In:	NIProperty.h

Class Description

The NIBoolProperty class defines an object that manages the connection between a GUI item and a NetInfo entry. NIBoolProperty objects link a NetInfo boolean to a GUI element. The GUI element offers three choices: default, true, and false. Where the absence of the property is considered the default state, the presence or any value of  `yes', `true', the value of yes (case insensitive), or `1' (followed by any sequence of characters) indicates the true state and any other value indicates the false state.

The GUI object must be a matrix of three radion buttons, where the first radio corresponds to the default, the second to the true, and the last to the false sate. ¬ The default string written to NetInfo for  true is "yes" and the default for false is "no".

The GUI object is sent the following methods:

	- setTarget:sender
	- setAction:@selector(method:)
	- (int)selectedCol
	- selectCellAt:(int)0 :(int)col

Instance Variables

id outlet;
char	*yes;
char	*no;

outlet 	The corresponding GUI object.
yes	The string to write to NetInfo for a true value.
no	The string to write to NetInfo for a false value.

Method Types

Initializing the NIBoolProperty object	- init:properties:name:outlet:

Instance Methods

NS_DEV_DOCFOR:objc_method:[Text-initFrame:text:alignment:];,init:properties:name:outlet:

- init:sender
properties:(ni_proplist *)props
name:(const char *)label
outlet:o

Initializes a new NIBoolProperty object.  This is the designated initializer for NIBoolProperty objects:  If you subclass NIProperty, your subclass's designated initializer must maintain the initializer chain by sending a message to super to invoke this method.  See the introduction to the class specifications for more information.

The four arguments specify the delegate (sender) to which the propertyWillChange and propertyDidChange methods will be sent, the property list as read from NetInfo, the string containing the name of the NetInfo entry, and the GUI object.

Returns self.

See also:  - addBool:outlet: (NIDirectory), Delegates Implemented (NIProperty)