[Pharo-project] Issue 4036 in pharo: Please update Help> Announcements tutorial
fernando.olivero at usi.ch
Mon Apr 18 10:47:26 CEST 2011
To remove the subscription you can evaluate: World announcer initialize.
Maybe the tutorial should add (pesudo code):
SystemAnnouncer on:#classremove send:#release: to: self.
World announcer unsuscribe: self.
Transcript show: 'A new window was opened';cr
I can update the tutorial if people agrees on the pseudo code.
To open a transcript evaluate: TranscriptMorph openWindow
(decoupled Transcript from Morphic, so directly ask the view to open itself)
On Sun, Apr 17, 2011 at 12:41 PM, <pharo at googlecode.com> wrote:
> Status: Accepted
> Owner: marcus.d... at gmail.com
> New issue 4036 by marcus.d... at gmail.com: Please update Help> Announcements
> 1. Not understanding how announcements work, I tried the tutorial
> found under
> World menu > Help> Help Browser > Announcements framework
> 2. Under Tutorial - Step 3, there is this line:
> "Transcript open." That crashes, because apparently Transcript no longer
> understands 'open'. How do you open a Transcript from a workspace under
> 3. I created a category 'Sandbox', and a class 'MyStuff'. I put the code
> from Tutorial -Step 3 into a method called anno1
> Object subclass: #MyStuff
> instanceVariableNames: ''
> classVariableNames: ''
> poolDictionaries: ''
> category: 'Sandbox'!
> !MyStuff methodsFor: 'as yet unclassified' stamp: 'DougEdmunds 4/14/2011
> | announcer |
> World announcer
> on: WindowOpened
> send: #value
> to: [ Transcript show: 'A new window was opened';cr].! !
> I ran "MyStuff new anno1." in a workspace.
> Now every time I open a window, the Transcript shows. "A new window was
> 4. I removed the MyStuff class. But every time I open a window, the
> Transcript still shows "A new window was opened."
> I return to the Announcements Tutorial, and there is NO EXPLANATION how to
> get rid of this 'announcement' or whatever I should call the line that
> appears in the Transcript.
> 6. So, please whoever wrote the Tutorial, update it.
> 7. And the more immediate question: how do I stop automatically printing 'A
> new window was opened' in the Transcript every time I open a window?
More information about the Pharo-project