Protocol viewer ?

Ned Konz ned at bike-nomad.com
Mon Sep 24 22:52:15 UTC 2001


On Monday 24 September 2001 02:31 pm, Gary McGovern wrote:
> Thanks for all the replies, but that isn't quite what I was looking for,
> but almost.
>
> for example
>
> bill := AdvancedB3DScene new openInWindow.
>
> open the protocol browser and there is listed 'addGradientFill'.
>
> bill addGradientFill.
>
> this doesn't respond. But correct this newbie if he's wrong but isn't
> addGradientFill not part the AdvancedB3DScene protocol. Isn't it part of
> the Morphic protocol and not inherited by AdvancdB3DScene class ?

You're not having problems with the browser; when you do the above, "bill" is 
a SystemWindow. Are you interested in the SystemWindow protocol (which is 
what you get when you browse from the first set of halos), or do you want the 
AdvancedB3DSceneMorph protocol?

Note that the above is not the same as:

bill := AdvancedB3DSceneMorph new.
bill openInWindow.

because bill in this case would be an AdvancedB3DSceneMorph, not a 
SystemWindow.

You could have gotten to the browser from the halos by hitting the yellow 
button twice -- the first gets the SystemWindow, the second gets the 
AdvancedB3DSceneMorph, and then alt-p would bring up _its_ protocol

If you want to browse the protocol of AdvancedB3DSceneMorph, just select its 
name, and hit alt-b, or cmd-b if you have a Mac.

Then you can point to the class name in the browser, and hit alt-p (or cmd-p) 
to browse the protocol.

Or you can get the same browser (minus the SystemWindow stuff) from an 
Inspector by hitting alt-p, or choosing it from the menu.

I don't know why we don't have a keystroke from Workspaces that pops one of 
these up, but it would be easy to add.

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com




More information about the Squeak-dev mailing list