Apple WebObjects 3.5 Tools And Techniques User Manual

Page 71

Advertising
background image

Binding Elements

71

This time, a different attribute is selected, since the default attribute
has already been bound.

2. Click Connect Variable to bind the selected attribute.

3. If, instead, you want to bind an attribute that has already been bound,

double-click its row, and the old binding is replaced with the new one.

You can also bind an element’s attributes by typing in the Inspector without
going through the dragging procedure. To do this:

1. Double-click in the binding column of the row for the attribute you

want to set.

A cursor appears in the Binding column, allowing you to type.

2. Type the binding in the text field, then press Enter.

When entering bindings this way, the following rules apply:

Constant strings (such as

“Joe”

) must be in quotes.

Variable and method names (such as

Joe

) must not be in quotes.

Symbolic constants (such as

YES

and

NO

) must not be in quotes.

Double-click here to get a
cursor, then type the binding.

Advertising