Copyright ã1998 by Robert Frank  All Rights Reserved.

NS_DEV_DOCFOR:objc_class:Text;,NIPopupProperty

Inherits From:	NIProperty : Object

Declared In:	NIProperty.h

Class Description

The NIPopupProperty class defines an object that manages the connection between a GUI item and a NetInfo entry. NIPopupProperty objects link a NetInfo string to a GUI element. The GUI element must be a target button of a popup or pulldown  menu. 
¬
Execpt for the default text, the text shown in the menu cannot be localized. It must be exactly as used in NetInfo. The menu may have exactly one item with the default text. If the property is not defined, this item will be displayed. When this item is choosen, the proerty will be removed.

The GUI object is sent the following method:

	- setTarget:sender
	- setAction:@selector(method:)
	- target
	- setTitle:(const char *)title

Instance Variables

id outlet;
id defaultText;

outlet 	The menu's target button.
defaultText 	The text to use for the default.

Method Types

Initializing the NIPopupProperty object	- init:properties:name:outlet:default:

Instance Methods

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

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

Initializes a new NIPopupProperty object.  This is the designated initializer for NIPopupProperty 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 five arguments specify the delegate (sender) to which the propertyWillChange and propertyDidChange methods will be sent, the property list as read from NetInfo (props), the string containing the name of the NetInfo entry (label), the popup or pulldown menu's target button object (o), and the text to be displayed for the default choice (tString).

Returns self.

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