How to create a package via code correctly ?
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 -- Marten Feldtmann
itlists@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
(RPackage named: 'ABC') register. or RPackageOrganizer default registerPackage: (RPackage named: 'ABCâ). or RPackageOrganizer default registerPackageNamed: âABCâ. the 3 ways work (just tested). If you are not succeeding probably there is another, previous problem (like de-sync caused by some failed operation made before)⦠cheers, Esteban
On 04 Oct 2014, at 08:30, Ben Coman <btc@openInWorld.com> wrote:
itlists@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
2014-10-04 8:45 GMT+02:00 Esteban Lorenzano <estebanlm@gmail.com>:
(RPackage named: 'ABC') register.
or
RPackageOrganizer default registerPackage: (RPackage named: 'ABCâ).
or
RPackageOrganizer default registerPackageNamed: âABCâ.
the 3 ways work (just tested). If you are not succeeding probably there is another, previous problem (like de-sync caused by some failed operation made before)â¦
cheers, Esteban
Does this include the SystemOrganization part? (SystemOrganization addCategory: 'Keks4') Or is this not neccessary anymore?
On 04 Oct 2014, at 08:30, Ben Coman <btc@openInWorld.com> wrote:
itlists@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
On 05 Oct 2014, at 00:04, Nicolai Hess <nicolaihess@web.de> wrote:
2014-10-04 8:45 GMT+02:00 Esteban Lorenzano <estebanlm@gmail.com <mailto:estebanlm@gmail.com>>: (RPackage named: 'ABC') register.
or
RPackageOrganizer default registerPackage: (RPackage named: 'ABCâ).
or
RPackageOrganizer default registerPackageNamed: âABCâ.
the 3 ways work (just tested). If you are not succeeding probably there is another, previous problem (like de-sync caused by some failed operation made before)â¦
cheers, Esteban
Does this include the SystemOrganization part? (SystemOrganization addCategory: 'Keks4') Or is this not neccessary anymore?
that includes everything. even MC package registration (since now there is a one-to-one relation between them) Esteban
On 04 Oct 2014, at 08:30, Ben Coman <btc@openInWorld.com> wrote:
itlists@schrievkrom.de <mailto:itlists@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 <http://web.cecs.pdx.edu/~black/OOP/Tutorial/Morphic%20Worksheet.html>
participants (4)
-
Ben Coman -
Esteban Lorenzano -
itlists@schrievkrom.de -
Nicolai Hess