Inherits From:
EOAssociation : EODelayedObserver : NSObject
Conforms To:
NSCoding (EOAssociation)
EOObserving (EODelayedObserver)
NSObject (NSObject)
Declared in:
EOInterface/EOPickTextAssociation.h
Class At a Glance:
Purpose
An EOPickTextAssociation applies a LIKE qualifier to its EODisplayGroup, based on the value of the display object. This allows the user to perform a similarity search based on whole or partial values.
Usable With
Any NSControl
Aspects
- matchKey1
- An attribute to match using a LIKE qualifier.
- matchKey2
- An attribute to match using a LIKE qualifier.
- matchKey3
- An attribute to match using a LIKE qualifier.
Object Keys Taken
- target
- The EOPickTextAssociation applies its qualifier when sent an action message from the NSControl.
- delegate
- The EOPickTextAssociation applies its qualifier when sent a controlTextDidChange: message, causing
dynamic update as the user types.
Class Description
An EOPickTextAssociation takes the value of its display object and uses it to form a qualifier with up to three LIKE operators, each compared to a different key of the EODisplayGroup.
Example
Make an EOPickTextAssociation between an NSTextField and an EODisplayGroup of People objects. Bind the matchKey1 and matchKey2 aspects to the "lastName" and "firstName" keys. If the user types "Bi" in the field, the EOPickTextAssociation applies the following qualifier to the EODisplayGroup:
(lastName LIKE "*Bi*") OR (firstName LIKE "*Bi*")
which matches names like "Bill Smith" and "Joe Biggs".
Copyright © 1997, Apple Computer, Inc. All rights
reserved.