AW: Constructing the browser morph

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

AW: Constructing the browser morph

Josef Vukovic-2
 
       


> Von: kmr1642 <[hidden email]>
> An: [hidden email]
> Betreff: [Newbies] Constructing the browser morph
> Datum: Thu, 12 Feb 2009 10:04:15 -0800 (PST)

> When you start a browser in Morphic with 'Browser open'
> the method 'Browser>>openEditString: aString' gets executed
> and helps construct the morph that appears in the world.
> no problem so far.
>
> But also in the class there is the method:
>  'Browser>>buildWith: builder'
> This method first describes the browser's widgets, putting
> the descriptions into a spec of some kind. then it executes the spec
> with a builder provided by a sender, presumably to construct
> the specified morph. But this method isn't executed
> when the brower starts. And I can't locate a real sender for it.
>
> Can anyone explain when and why this method gets executed?
>
> thanks.
> Michael
> --
> View this message in context: <a target="_blank"
> href='http://www.nabble.com/Constructing-the-browser-morph-tp21981508p219815
> 08.html'>http://www.nabble.com/Constructing-the-browser-morph-tp21981508p219
> 81508.html</a>
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> <a target="_blank"
> href='http://lists.squeakfoundation.org/mailman/listinfo/beginners'>http://l
> ists.squeakfoundation.org/mailman/listinfo/beginners</a>
How did you look at the execution stack? with halt if so where to put it in in which method?

LOVE@LYCOS ist jetzt ganz neu ? melde dich kostenlos an, lerne neue Leute kennen und finde deinen Flirt! http://love.lycos.de/start.action
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: AW: Constructing the browser morph

Michael Ross-1
Josef Vukovic-2 wrote
 
       


> Von: kmr1642 <kmr1642@yahoo.com>
> An: beginners@lists.squeakfoundation.org
> Betreff: [Newbies] Constructing the browser morph
> Datum: Thu, 12 Feb 2009 10:04:15 -0800 (PST)

> When you start a browser in Morphic with 'Browser open'
> the method 'Browser>>openEditString: aString' gets executed
> and helps construct the morph that appears in the world.
> no problem so far.
>
> But also in the class there is the method:
>  'Browser>>buildWith: builder'
> This method first describes the browser's widgets, putting
> the descriptions into a spec of some kind. then it executes the spec
> with a builder provided by a sender, presumably to construct
> the specified morph. But this method isn't executed
> when the brower starts. And I can't locate a real sender for it.
>
> Can anyone explain when and why this method gets executed?
>
> thanks.
> Michael
> --
> View this message in context:  href='http://www.nabble.com/Constructing-the-browser-morph-tp21981508p219815
> 08.html'>http://www.nabble.com/Constructing-the-browser-morph-tp21981508p219
> 81508.html

> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
>
> _______________________________________________
> Beginners mailing list
> Beginners@lists.squeakfoundation.org
>  href='http://lists.squeakfoundation.org/mailman/listinfo/beginners'>http://l
> ists.squeakfoundation.org/mailman/listinfo/beginners


How did you look at the execution stack? with halt if so where to put it in in which method?

I put 'self halt.' right after the local variable declaration
in the methods:
        Browser>>openEditString: aString
        Browser>>buildWith: builder
and then executed a 'Browser open.'.
The openEditString: halt gets hit; the buildWith: halt doesn't.