Pharo Smalltalk - How can I list all the classes in a Category?
In the System Browser, the first pane contains the Category under which all my classes are listed. Is there a list of those classes programmatically?
You can list all classes like
(RPackageOrganizer default packageNamed: 'Kernel') definedClasses
You can also use
(RPackageOrganizer default packageNamed: 'Kernel') classTags
to get all tags in the package (previously known as packages
) and for each you can send #classes
to get the classes of the tag
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.