Re: [Newbies] Re: mix ins

2016-08-02 Thread Bert Freudenberg
On Tue, Aug 2, 2016 at 8:55 PM, Joseph Alotta 
wrote:

> 4.3
>
> What is the procedure for upgrading?  Should I file-out the classes,
> download the new version and then file-in?
>

That would be one simple way to do it, yes.

OTOH if you're happy with 4.3 there is no need to upgrade - just add the
methods you need to your image.

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


Re: [Newbies] Re: mix ins

2016-08-02 Thread Bert Freudenberg
On Tue, Aug 2, 2016 at 5:39 PM, Joseph Alotta 
wrote:

>
> > On Aug 2, 2016, at 9:38 AM, Bert Freudenberg [via Smalltalk] <[hidden
> email] > 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


Re: [Newbies] Re: mix ins

2016-08-02 Thread Bert Freudenberg
On Tue, Aug 2, 2016 at 5:48 PM, Joseph Alotta 
wrote:

> Bert,
>
> I don’t have these methods.  I get an error.  See attached:
>


Are you using Squeak 5.0?

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