Release 1.0  Copyright ã1994 by M. Onyschuk and Associates Inc.  All Rights Reserved.

OATextField

Inherits From:	TextField

Declared In:	<OATextField/OATextField.h>

Class Description

OATextField is a kind of TextField whose default cell is a kind of OATextFieldCell, and which offers covers for all of OATextFieldCell's instance methods.

Instance Variables

Method Types

	- caseMapping
	- characterFiltering
	- doesCheckMaximumLength
	- doesCheckMaximumValue
	- doesCheckMinimumLength
	- doesCheckMinimumValue
	- doesRemoveLeadingWhitespace
	- doesRemoveTrailingWhitespace
	- filteringExceptions
	+ initialize
	- isMandatory
	- isNullable
	- maximumLength
	- maximumValue
	- minimumLength
	- minimumValue
	- setCaseMapping:
	- setCharacterFiltering:
	- setChecksMaximumLength:
	- setChecksMaximumValue:
	- setChecksMinimumLength:
	- setChecksMinimumValue:
	- setFilteringExceptions:
	- setMandatory:
	- setMaximumLength:
	- setMaximumValue:
	- setMinimumLength:
	- setMinimumValue:
	- setNullable:
	- setRemovesLeadingWhitespace:
	- setRemovesTrailingWhitespace:
	- setTextFieldFormatter:
	- textDidEnd:endChar:
	- textFieldFormatter
	- textWillEnd:

Class Methods

initialize
+ initialize

Sets the OATextFieldCell class to be the default Cell class used by instances the receiver.

See also:  +setCellClass:

Instance Methods

awake
-  awake

Resets the receiver's text value from its current case mapping setting, removes leading and trailing whitespace as appropriate, and sets the receiver's font and color as specified by the defaults database.

See also: 

awakeFromNib
-  awakeFromNib

Invokes the receiver's -awake method.

See also:  -awake

caseMapping
-  (OACaseMapping)caseMapping

Returns the receiver's current case mapping setting.

See also:  -setCaseMapping:

characterFiltering
-  (OACharacterFiltering)characterFiltering

Returns the receiver's current character filtering setting.

See also:  -setCharacterFiltering:

doesCheckMaximumLength
-  (BOOL)doesCheckMaximumLength

Returns YES if the receiver enforces a maximum length on input.

See also:  -setChecksMaximumLength:

doesCheckMaximumValue
-  (BOOL)doesCheckMaximumValue

Returns YES if the receiver enforces a maximum value on input.

See also:  -setChecksMaximumValue:

doesCheckMinimumLength
-  (BOOL)doesCheckMinimumLength

Returns YES if the receiver enforces a minimum length on input..

See also:  -setChecksMinimumLength:

doesCheckMinimumValue
-  (BOOL)doesCheckMinimumValue

Returns YES if the receiver enforces a minimum value on input..

See also:  -setChecksMinimumValue:

doesRemoveLeadingWhitespace
-  (BOOL)doesRemoveLeadingWhitespace

Returns YES if the receiver strips leading whitespace on input.

See also:  -setRemovesLeadingWhitespace:

doesRemoveTrailingWhitespace
-  (BOOL)doesRemoveTrailingWhitespace

Returns YES if the receiver strips trailing whitespace on input.

See also:  -setRemovesTrailingWhitespace:

filteringExceptions
-  (const char *)filteringExceptions

Returns a C style string containing characters accepted by the receiver despite its text filtering setting.

See also:  -setFilteringExceptions:, -characterFiltering:, -setCharacterFiltering:

initTextCell:
-  initTextCell:

Initializes the receiver and invokes its -awake method for further initialization.

See also:  -awake

isMandatory
-  (BOOL)isMandatory

Returns YES if the receiver is marked mandatory.

See also:  -setMandatory:

isNullable
-  (BOOL)isNullable

Returns YES if the receiver may contain no data.

See also:  -setNullable:

maximumLength
-  (int)maximumLength

Returns the receiver's maximum text length.

See also:  -setMaximumLength:

maximumValue
-  (int)maximumValue

Returns the receiver's maximum integer value.

See also:  -setMaximumValue:

minimumLength
-  (int)minimumLength

Returns the receiver's minimum text length.

See also:  -setMinimumLength:

minimumValue
-  (int)minimumValue

Returns the receiver's minimum integer value.

See also:  -setMinimumValue:

read:
-  read:(NXTypedStream *)aStream

Reads the reciever from aStream.

See also:  

setCaseMapping:
-  setCaseMapping:(OACaseMapping)aValue

Sets the receiver's case mapping option to one of  MAP_TO_NONE, MAP_TO_UPPER, MAP_TO_LOWER, MAP_TO_PROPER, or MAP_TO_STUDLY, causing the receiver to perform no case mapping, upper case mapping, lower case mapping, first-character-upper case mapping, or random case mapping respectively.

See also:  -caseMapping

setCharacterFiltering:
-  setCharacterFiltering:(OACharacterFiltering)aValue

Sets the receiver's character filtering option to one of ALLOW_ALL, ALLOW_LETTERS, ALLOW_NUMBERS, or ALLOW_ALPHANUMERIC causing the receiver to accept all characters, letters only, or numbers only respectively. To allow exceptions to be passed through the filter, use the receiver's -setFilteringExceptions: method.

See also:  -characterFiltering, -setFilteringExceptions:

setChecksMaximumLength:
-  setChecksMaximumLength:(BOOL)aValue

Enables or disables the receiver's check for maximum input length.

See also:  -doesCheckMaximumLength

setChecksMaximumValue:
-  setChecksMaximumValue:(BOOL)aValue

Enables or disables the receiver's check for maximum integer input value.

See also:  -doesCheckMaximumValue

setChecksMinimumLength:
-  setChecksMinimumLength:(BOOL)aValue

Enables or disables the receiver's check for minimum input length.

See also:  -doesCheckMinimumLength

setChecksMinimumValue:
-  setChecksMinimumValue:(BOOL)aValue

Enables or disables the receiver's check for minimum integer input value.

See also:  -doesCheckMinimumValue

setFilteringExceptions:
-  setFilteringExceptions:(const char *)aValue

Sets the C style string containing characters accepted by the receiver despite its text filtering setting.

See also: -filteringExceptions, setCharacterFiltering:  

setMandatory:
-  setMandatory:(BOOL)aValue

Sets whether the receiver is must be filled with data, or whether entering data into the receiver is optional. With certain entries into the defaults database, OATextFieldCells can color themselves to indicate whether they are mandatory or optional.

See also:  -isMandatory

setMaximumLength:
-  setMaximumLength:(int)aValue

Sets the maximum length of input text accepted by the receiver.

See also:  -maximumLength

setMaximumValue:
-  setMaximumValue:(int)aValue

Sets the maximum integer value accepted by the receiver.

See also:  -maximumValue

setMinimumLength:
-  setMinimumLength:(int)aValue

Sets the minimum length of input accepted by the receiver.

See also:  -minimumLength

setMinimumValue:
-  setMinimumValue:(int)aValue

Sets the minimum integer value accepted by the receiver.

See also:  -minimumValue

setNullable:
-  setNullable:(BOOL)aValue

Sets whether the receiver may contain no data.

See also:  -isNullable

setRemovesLeadingWhitespace:
-  setRemovesLeadingWhitespace:(BOOL)aValue

Sets whether the receiver removes leading whitespace after data entry is complete.

See also:  -doesRemoveLeadingWhitespace

setRemovesTrailingWhitespace:
-  setRemovesTrailingWhitespace:(BOOL)aValue

Sets whether the receiver removes trailing whitespace after data entry is complete.

See also:  -doesRemoveTrailingWhitespace:

setTextFieldFormatter:
-  setTextFieldFormatter:(OATextFieldFormatter *)aValue

Sets the receiver's OATextFieldFormatter object to a copy of aValue by copying aValue and invoking the receiver's setTextFieldFormatterNoCopy: method. TextFieldFormatters are objects which specify special data entry behavior both during text entry, and after text entry is complete.

See also:  -textFieldFormatter, -setTextFieldFormatterNoCopy: -copyFromZone: (OATextFieldFormatter class)

setTextFieldFormatterNoCopy:
-  setTextFieldFormatterNoCopy:(OATextFieldFormatter *)aValue

Sets the receiver's OATextFieldFormatter object to aValue. TextFieldFormatters are objects which specify special data entry behavior both during text entry, and after text entry is complete.

See also:  -textFieldFormatter:

textDidEnd:endChar:
-  textDidEnd:anObject
endChar:(unsigned short)whyEnd

Overrides to send endEditing: message to [self cell]. I'm not sure whether this is necessary.

See also:  

textFieldFormatter
-  (OATextFieldFormatter *)textFieldFormatter

Returns the receiver's text field formatter.

See also:  -setTextFieldFormatterNoCopy:, -setTextFieldFormatter: