Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Tools and Techniques

   

Creating and Using Palette Items

To add an item from a component to a palette:

  1. Make the palette editable.

    If the palette's background is gray, you can't make any changes to it. To enable editing, choose Make Editable from the Palettes pull-down list. The palette's background changes to white and its title is appended with "Alt-drag to insert item."

    Note:  You can't make pre-configured palettes editable.

  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.

When you are done adding elements to your palette, choose Save Palette or Save Palette As from the Palettes pull-down list.

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 Make Uneditable from the Palettes pull-down list).

    Note: If the palette is editable, you can drag the item to the window, but it will disappear from the palette.

  2. Drag the item from the palette to the location in the component window where you want it to appear.


© 1999 Apple Computer, Inc. – (Last Updated July 27 99)