In the Class browser, action-click (in Windows, right-click) on the Packages pane (the left-most pane).
The browser automatically generates the code to create the new sub-class of object, with the 'category' set to the Package name.
Packages should have a two or three letter abbreviation at the start of their name.
(Categories and packages are not entirely the same thing: categories have existed at least since the dawn of Smalltalk-80, and are simply a collections of related classes in a Smalltalk image. A package is a collection of related classes and extension methods that may be versioned using the Monticello versioning tool.)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment