Custom webobjects – Apple WebObjects 3.5 Tools And Techniques User Manual

Page 81

Advertising
background image

Creating Other WebObjects

81

Custom WebObjects

You use custom WebObjects for two main purposes:

To implement WebObjects element classes not directly supported by
WebObjects Builder.

To implement reusable components (see “Reusable Components” for
more details).

To create a custom WebObject:

1. Click

in the toolbar.

A template for a custom WebObject appears at the insertion point.

2. In the Custom WebObject Inspector, specify the element class.

The WebObject Class combo box allows you to type the class name or
select it from the components listed in the pop-up menu. This menu
lists all components that are in the current project and frameworks. For
example, the components listed in the menu above
(WOSimpleArrayDisplay, WOSortOrder, and so forth) are defined in

Select class name
from the list or type it.

Click to add the
element’s attributes.

Advertising