Norbert Hartl <norbert@hartl.name> writes:
Well, I think you have the perfect source for learning right in front of you. The code snippet above didn't come from my mind. I just remembered that if you are on a class you can open the menu, open 'Refactor Class' and select Accessors to have pharo generate getters and setters for you. So I wrote "Accessors" (with the double quotes) in the workspace selected it and did a string seach (shortcurt E). From the choice given 'ORCmdAccessorClassRefactoring' seemed to be the most feasible. Then I investigated the methods found some other reference and so on (I leave this as an exercise). Finally I found a snippet which I copied and altered for your needs. This way I learned something about OmniBrowser, Refactoring-Engine and that there is a method expandMacrosWith: :)
Well I'm old fashioned, I like to look into books and see somethign step-by-step. Unfortunatly the most Smalltalk books are lacking in that area (for my taste) Regards Friedrich -- Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus