1 The Inspector
liquibyte edited this page 2026-11-19 16:23:32 -06:00

The Inspector

The Inspector shows the facts of the selected object. Its Properties tab holds the object's fields, its Relationships tab its relationships and the objects that link to it. This page describes both tabs, every kind of field, table fields, the Manage Fields and Row/Column dialogs that define them, and the dialogs that add and remove relationships.

1. The two tabs

The Inspector is at the right of the window at first. It has two tabs, Properties and Relationships; Skein remembers which one you used last, for each project. With a type selected, or nothing, both tabs are empty: a type has no values of its own. The object's name, type and parent are shown in the status bar.

The panel's title reads * Inspector after a field has been added or deleted in Manage Fields, until the project is saved.

2. The Properties tab

The Properties tab has one row for each field of the object's type, with the field's name at the left. The rows come in this order: Image fields first, then Notes and the other fields in the order they were made, then the table fields, and the Color field last.

Field How you change it
Text, and the built-in Notes Type into the one-line entry (up to 255 characters).
Textarea Type into the multi-line box; Tab types a tab.
Number (from earlier versions) Type a number.
Dropdown Choose one of its choices from the list (the first 24 choices are offered). A value that is not one of the choices shows as nothing chosen.
Image Press Choose... under the picture and pick a PNG, JPEG, GIF or BMP file in the "Choose Image" dialog, which opens at the current picture. The picture is shown at most 96 by 96 pixels. The field keeps the file's path; a relative path is read from the folder of the project file.
Color (built-in) Press Choose... beside the swatch and pick a color. It tints the object's icon in the Project Tree. Until you choose one, the swatch is grey and the icon takes its type's color.
Table Click a cell of the grid and type (section 3).

A value is written into the project as you type or choose it; there is nothing to confirm. In a text entry, Ctrl+Z undoes your typing, and undoing back to the value as it was counts as no change. The values reach the file on disk with the next save.

The picture of an Image field is decoded in Skein's jailed worker, like every picture (see Safety). With no picture chosen, or one that cannot be read or decoded, or on a system with no jail, the box shows only a thin outline.

Moving around. When the fields do not fit, scrollbars appear; the mouse wheel scrolls the tab. Every new selection starts at the top. Ctrl+Tab moves the keyboard focus from the Document to the first field and on through each entry, list and Choose... button in turn.

3. Table fields in the Inspector

Each table field shows as a caption with its name, above a grid with a column for each of its columns and a row for each of the object's rows. Click a cell to type into it; each change is written at once. Rows and columns are added and deleted in the Row/Column dialog (section 5).

4. Manage Fields

Edit > Manage Fields... (Ctrl+Shift+F), or the same item of the tree's right-click menu, defines the fields of the selected type, or of the selected object's type. The dialog's title names the type: Manage Fields — Recipes. It says "Fields defined here appear as editable properties on every object of this type, in the Inspector's own Properties tab."

Every change in this dialog takes effect at once; there is no OK or Cancel.

Control What it does
The list of fields One row for each field of the type, as its name and its kind in brackets: Course (enum), Method (textarea), Photo (image), Ingredients (table), Title (text). Click a row to select it. With no fields it reads "No fields yet — add one below."
New field: The name of a new field.
The kind list Text, Image, Table, Textarea or Dropdown. Text at first.
Add Adds the field. For a Dropdown, Skein then asks "Dropdown choices (comma-separated):", for example Starter, Main, Dessert. For a Table it asks "Table columns (comma-separated):", for example Amount, Ingredient. With an empty name, or no choices or columns, nothing is added.
Delete Selected Deletes the selected field at once, without asking. The values of a deleted field stay in the project but no longer show; the rows of a deleted table field are deleted.
Undo Undoes the last change of the project, as Edit > Undo does: after Delete Selected it brings the field back (a table field with its columns, but without its rows).
Edit Renames the selected field ("Rename field to:"). Every object keeps its value under the new name.
Row/Column... Opens the Row/Column dialog for the selected table field (section 5). Only for a table field.
Close Closes the dialog. Escape and the close button do the same.

Two hints in the dialog say "Image: pick the actual file later, per object, in the Inspector." and "Table: adding one asks for its columns (comma-separated) next." Delete Selected and Edit are greyed until a field is selected.

5. The Row/Column dialog

Row/Column... in Manage Fields opens this dialog for one table field; its title reads Row/Column — Ingredients. Its changes take effect at once, and none of them can be undone.

Control What it does
The list of columns The table's columns, in order. Click one to select it.
New column: and Add Adds a column at the end, for every object of the type. A table has at most 8 columns.
Delete Column Deletes the selected column and its cells in every object. When any object has something in that column, Skein asks first: ""Amount" has data in it on at least one object. Delete this column and that data anyway? This can't be undone."
Rows (of this object): The rows of the object that was selected when you opened Manage Fields, each as its cells separated by `
Add Row Adds an empty row to the object.
Delete Row Deletes the selected row, after asking "Delete this row? This can't be undone."
Close Closes the dialog. Escape and the close button do the same.

The rows belong to one object, so the rows part needs an object: with a type selected, the dialog says "Select an object (not the type) to manage its rows." instead.

6. The Relationships tab

The Relationships tab has two buttons, Add Relationship... and Remove Relationship..., which work only with an object selected. Under them is a page in two parts:

  • Relationships: every relationship the object takes part in, whichever way it points, as the relationship's name and the other object: Uses Ingredient: Flour on the object it starts from, and on the other object the inverse name, Used In Recipe: Bread, or, for a type with no inverse name, the name with an arrow back, Uses Ingredient ←: Bread.
  • Referenced by: every object whose document links to this one.

Each name is a link: a click selects that object. A part with nothing in it reads "(none)". The page has the colors of the Document panel (see Themes). "Referenced by" is made from the same links as the Graph (see The Graph), and is up to date also while the Graph panel is hidden.

Add Relationship

Control What it does
Relationship type, and its inverse after " / " (optional): The name of the relationship, for example Uses Ingredient. A name you have used before (in any mix of capitals) reuses that relationship type; a new one makes a new type. After / you can give its inverse name, how it reads from the other object: Uses Ingredient / Used In Recipe. An inverse given for a type that exists replaces its inverse name.
Related object: A list of every other object of the project, in the order of the tree, by name.
Add Makes the relationship from the selected object to the chosen one. Enter does the same. With an empty name, nothing is made.
Cancel Closes the dialog. Escape and the close button do the same.

When the project has no other object, the button does nothing.

Remove Relationship

The dialog lists the object's relationships as "type → other object", for example Uses → Rye flour. Choose one and press Remove; Cancel, Escape or the close button closes the dialog without a change. When the object has no relationships, the button does nothing.

Adding and removing a relationship cannot be undone. Each relationship is an edge on the Graph.

7. Known limitations

  • Edit > Undo does not cover the values of fields, the rows and cells of tables, or relationships.
  • Notes is a one-line field.
  • A Textarea field keeps its text in full, but shows and edits only its first 4 KiB; an edit then saves only those.
  • The mouse wheel does not scroll the Properties tab while the pointer is over a Dropdown list, the Color swatch or its button, or a table.
  • The Row/Column dialog shows at most 8 rows of an object; rows beyond those cannot be selected there.
  • The Add Relationship list offers the first 256 objects of the project only, and shows names without their type, so two objects with the same name look alike.
  • Manage Fields shows the inner names of the kinds (enum for Dropdown), cannot put fields in another order, and cannot change the choices of a Dropdown.
  • Each part of the Relationships tab holds about 4 KiB of text, roughly a hundred names; the rest are not shown.
  • Manage Fields lists at most 16 fields of a type.