Inherits From:
EOAssociation : EODelayedObserver : NSObject
Conforms To:
NSCoding (EOAssociation)
EOObserving (EODelayedObserver)
NSObject (NSObject)
Declared in: EOInterface/EOActionAssociation.h
Examples
Suppose you have an application that manages member accounts, each of which has a restriction on the outstanding balance allowed. Further, the Member class defines a boostRestrictions method that increases the limit by 20%. You can set up a button in the application to invoke this method by connecting it to the Member display group and binding the action aspect to the "boostRestrictions" key (which you add in Interface Builder).
In another scenario, one EODisplayGroup shows Members, while another shows video tapes available for rent. Here, you can bind a button to the Members EODisplayGroup with the action rentVideoTape: . Similarly, you bind the VideoTape EODisplayGroup to the argument aspect. Now, when the user selects a Member and a VideoTape and clicks the button, the Member is sent a rentVideoTape: message with the VideoTape.
Copyright © 1997, Apple Computer, Inc. All rights reserved.