<div dir="ltr"><div><div><div><div><div>Hi Louis,<br></div>if the purpose is packaging code for loading/unloading/versioning, then the usage is to create a package via Monticello, say<br><br></div>'LouisApp'<br><br></div>Then any class classified into a category 'LouisApp', 'LouisApp-Base' or 'LouisApp-Whatever' would belong to the 'LouisApp' package.<br></div>And any method classified into a category '*LouisApp', '*LouisApp-accessing' or '*LouisApp-WhatYouPrefer' would also belong to the 'LouisApp' package. That's how we would package some extension to another class not in our package.<br><br></div>That's a very low cost but effective convention.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-13 18:38 GMT+01:00 Louis LaBrunda <span dir="ltr"><<a href="mailto:Lou@keystone-software.com" target="_blank">Lou@keystone-software.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bob,<br>
<br>
Thanks for the prompt reply.  I'm still a little confused.  Allow me to describe what we do in<br>
VA Smalltalk and see if we can get the same results in Squeak.<br>
<br>
VA Smalltalk has a class called Application.  Applications are similar (I think) to Class<br>
categories (the first pane on the left).  Classes can appear in more than one Application. Each<br>
Application a class appears in holds some methods.  A class starts out being defined in one<br>
application.  It is "extended" by adding methods to other applications.  If one of those<br>
applications is not loaded, then the extended methods are not available.<br>
<br>
I have created a Class category to hold my program.  As part of the program I want to add a few<br>
methods to say the String class.  But I'm afraid I will add them to the class category where<br>
String is defined.<br>
<br>
Does this make sense and how do I do it in Squeak?<br>
<br>
<br>
Lou<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, 13 Jan 2017 12:18:37 -0500, Bob Arning <<a href="mailto:arning315@comcast.net">arning315@comcast.net</a>> wrote:<br>
<br>
>Class categories (the first pane on the left at the top of a system<br>
>browser) are completely different from method categories (third pane<br>
>from the left). Assuming you are talking about method categories, you can:<br>
><br>
>- select the desired method category before you enter and save the method<br>
><br>
>- if it's already in the wrong category...<br>
><br>
>-- drag the method name from the fourth pane into the third pane at the<br>
>desired category<br>
><br>
>-- copy the method source, select the desired category, paste the method<br>
>source back in and save<br>
><br>
>-- choose "reorganize" from the third pane menu<br>
><br>
><br>
>On 1/13/17 11:55 AM, Louis LaBrunda wrote:<br>
>> Hi All,<br>
>><br>
>> How does one extend a class (add methods) and have the source of the methods be in a category<br>
>> other than the one the class is originally defined in?  I expect this is simple and I'm just<br>
>> missing something easy.<br>
>><br>
>> Lou<br>
</div></div><div class="HOEnZb"><div class="h5">--<br>
Louis LaBrunda<br>
Keystone Software Corp.<br>
SkypeMe callto://PhotonDemon<br>
<br>
<br>
</div></div></blockquote></div><br></div>