Apple WebObjects 3.5 Tools And Techniques User Manual

Page 51

Advertising
background image

Palettes

51

If the palette’s background is gray, you can’t make any changes to it. To
enable editing, choose Palettes

m

Make Editable. The palette's

background changes to white and its title says “Alt-drag to insert
item.”

Note:

When you first create a palette, it is editable until you save

it.

2. In the component window, select the element or elements that you

want to add to the palette.

3. Hold down the Alt key and drag the selection to the palette.

The cursor changes to

and displays in the palette when you are

done dragging. You can change the title of the item by selecting its
name and typing. To change the item's icon, see “Changing a Palette
Icon”.

You can also add any item from the file system to a palette (including such
things as a component, an image, or an EOModel). To do so:

1. Make the palette editable.

2. Locate the item in the file system.

3. Drag the item onto the palette.

For example, to add a component to a palette, you would drag its

.wo

folder to the palette.

Note:

On Windows NT, you can't drag an item directly to the palette,

because the palette window doesn't appear unless a WebObjects
Builder window is in the foreground. Therefore, you must drag the
item to WebObjects Builder's icon in the taskbar at the bottom of the
screen and hold it until the palette window appears. With the mouse
button still down, drag the item to the palette.

When you are done adding elements to your palette, choose Palettes

m

Save

Palette. The background changes to gray, indicating that the palette is no
longer editable.

To copy an item from a palette to the component window:

1. Make sure the palette is not editable (if its background is white, choose

Palettes

m

Make Editable).

Advertising