itli...@schrievkrom.de wrote:
How can I create a package correctly via code ?

I tried stuff like

PackageOrganizer default registerPackageNamed: 'Keks4'

SystemOrganization addCategory: 'Keks4'

but the package does not appear in the browser.


Marten



I don't have a direct answer for you, since I don't know - but I can tell you how to discover the answer yourself (or at least how I would go about it myself)

1. Right-click in the package pane, and then bring up the Halos[1] on the menu-item-of-interest e.g. "Add package..."

2. From the Debug (spanner) halo menu choose "Inspect morph". Scroll down until you see something that looks like a method being called. Go to that method and put a "self halt" at the top.

3. Invoke the menu-item-of-interest, then in the debugger step through what it does, and copy that for your own purpose.

Please report back if you succeed with this, or otherwise feel free to ask for more assistance. I just believe it helps you more to teach you how to fish :) rather than just give you one someone else caught.

cheers -ben

[1] http://web.cecs.pdx.edu/~black/OOP/Tutorial/Morphic%20Worksheet.html

Reply via email to