logo       

Re: World when: #aboutToEnterWorld send:to:: msg#00070

lang.smalltalk.squeak.beginners

Subject: Re: World when: #aboutToEnterWorld send:to:

Best way to find it out is to browse implementors of #when:send:to:
Then follow the messages chain:
- you see the "doIt" is stored as a WeakMessageSend
- which is sent to Object>>#when:evaluate:
- Object>>#setActionSequence:forEvent:
- Morph>>#updateableActionMap
- Morph>>#valueOfProperty:

Then you should be able to
World inspect.
or:
World explore.
select extensions, then otherProperties and search therein...

Now that you know where the WeakMessageSend is stored, you still have to figure out how it is triggered.
You'll have to inquire about actionSequence you saw above...
I wish you a good browsing.

Note this usefull shortcut: you can select name of a message or a class and hit ALT+b.

Nicolas

Doug Edmunds a écrit :
I was trying a tutorial at
http://coweb.cc.gatech.edu/cs2340/2200

I ran doIt on this code in a workspace of a project

World when: #aboutToEnterWorld send: start to: Demo1.

(after creating the Demo1 class and the class method start.

Basically, all it does is open a Transcript and write
a line or two of text. It works every time I open that project.

My primary question is where is the result of the doIt being stored?
I would like to be able to change it, disable it, remove it, etc.
What tool do I use to find this line of code in the image?

How is it that sending code like this one time can cause it to run every
time the project gets opened?

- dae


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise