=== Top of the Swiki === Attachments ===

FAQ: Goodies

Q: What are goodies anyway?

A: Goodies are a nickname for "filed out" pieces of code, that you can add to your system ("file in"). These goodies can be objects, or changes. They make it extremely easy to distribute enhancements or changes to a Squeak image.

Goodies are not a unique Squeak product; every Smalltalk uses them. It is even possible to exchange code between different Smalltalks this way. This is of course only possible if your code doesn't depend on other objects that are specific to Squeak.

See Goodies.

Q: How do I import goodies in my image?

A: From the World Menu select "open..." and "file list". Choose the path and filename of the .st or .cs file. From the file views menu (middle mouse button) choose fileIn to import all the code into your image.

Once you've saved your image from the world menu, all filed-in changes are made persistent to your image.

Q: And how do I create my own?

A: You can make different types of goodies: from a collection of classes, from one class, and even from a method of a class. But you can also make a goodie of your changes.

To make a goodie of a collection, class or method, open it in a browser, and choose fileOut from the menu. You will find a .st file -the goodie- in your directory.

It is somewhat more difficult to make a goodie of your changes (a "changeset"), because you have to manage them correctly. However, most Squeakers use changesets to handle their goodies/programs/applications written in Squeak, so it's useful to learn. Select "changes" from the World menu to view your options. The most common method is to open a simple change sorter, rename the currently unnamed change set to a name that you'd like, and then select "file out". This will create a .cs file containing all of the programming changes you've made in Squeak.