On Tue, Aug 2, 2016 at 5:39 PM, Joseph Alotta <joseph.alo...@gmail.com>
wrote:

>
> > On Aug 2, 2016, at 9:38 AM, Bert Freudenberg [via Smalltalk] <[hidden
> email] <http:///user/SendEmail.jtp?type=node&node=4909179&i=0>> wrote:
> >
> > Thirdly, to keep these "extension methods" in your own package, put them
> in a method category that starts with an asterisk followed by your package
> name. That is, if your Monticello package is named "Foo-Bar", then put your
> "mix in" Array methods into the category "*foo-bar" which will mark them as
> belonging to your package, not the package the Array class is in. The
> extension methods will be stored and loaded with your package.
>
> Bert,
>
> I am not sure how to do this.  My project is called Books.
>

I meant a method category (a.k.a. protocol). Right-click in Array's method
categories list and add a new category named *books. Then select it and put
your methods there. You can also use drag-and-drop to move a method to the
right category.

[image: Inline image 1]

- Bert -
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to