April 10, 2013
6:08 p.m.
I'm writing a little debugger extension and I want to replace the entire method source with another string. I thought of two ways: aDebugger getTextMorph textMorph editor selectAll. aDebugger getTextMorph textMorph editor zapSelectionWith: aString. or aDebugger getTextMorph textMorph contents: 'meaning: aString meaning := aString.' aDebugger getTextMorph textMorph editor userHasEdited They both work, but what is the best/correct way to do something like this? Thanks! ----- Cheers, Sean -- View this message in context: http://forum.world.st/Replacing-all-text-in-a-code-pane-tp4680669.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.