Code Management

Exercise 9.3

  1. In the System Browser, create two class categories: in its most left pane menu select add item... (a) and key in one category name at a time.
  2. Create two classes, in each category: TheCuisBook subclass of Object and TheBookMorph subclass of PlacedMorph.

    The two operations above are doable in one shot. Select any existing category and key in the class definition with the category name:

    PlacedMorph subclass: #TheBookMorph
       instanceVariableNames: ''
       classVariableNames: ''
       poolDictionaries: ''
       category: 'TheCuisBook-Views'
    

    Once you save the class definition, the TheBookMorph class is created – obviously – but also the TheCuisBook-Views category!

  3. Go to the Installed Packages tool ...World menu → Open...Installed Packages..., press the new button and key in TheCuisBook.
  4. Press the save button, you are done!