|
Re: add method from Workspace?: msg#00065lang.smalltalk.squeak.beginners
Don, Open the message names browser and search for compile: . You'll most likely find the methods compile: , compile:classified: and compile:in:classified: most interesting. As a quick example, execute the code below in a workspace, it will add the instances method myMethod to the String class in the category 'complie-example'. String compile: ' myMethod ^ ''testing'' ' classified: 'compile-example' . Note that you will have to escape quotes... I hope this helps. Travis Don McLane wrote: How can I add a method to a class from the workspace? Adding a class is
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | add method from Workspace?, Don McLane |
|---|---|
| Next by Date: | how to get form with font, Don McLane |
| Previous by Thread: | add method from Workspace?, Don McLane |
| Next by Thread: | how to get form with font, Don McLane |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |