Jeanne's World
   Apple Guide Place
       Apple Guide FAQs

Apple Guide:

What is a mixin?
How do I decide whether to use mixins?
How do I set up and compile a mixin?
How do I control when a mixin mixes into the parent guide?
How do I use elements from the parent guide in a mixin?
Why does GuideMaker refuse to compile my mixin?
Why won't a mixin mix into the parent guide?
Why does the guide look strange when a mixin is active?

What is a mixin?

A mixin (also called a Guide Addition) is an add-on Apple Guide file that can modify its parent guide at run time. A mixin can add sequences or suppress the display of existing sequences in the guide; it can change the index and topics list; and it can override sequences in the guide, replacing them with new content. You can limit a mixin so that it "mixes in" only on machines with a certain configuration, and otherwise leaves the parent guide unchanged.

The mixin is placed in the same folder as the parent guide, but it does not appear in the Guide menu, and the user never selects it directly. Instead, Apple Guide automatically applies the mixin's changes to the parent guide whenever the parent guide is opened.

A mixin can be used:

You can use a qualifier resource - a code segment that returns a boolean - to specify the conditions under which a mixin should mix into the parent guide. When the parent guide is opened, if a qualifier resource is present, Apple Guide checks the qualifier result; if the conditions aren't met, the mixin is ignored and doesn't affect the parent guide.

 Next: How do I decide whether to use mixins?

Jeanne A. E. DeVoto
Copyright © 1997 Jeanne A. E. DeVoto