be a web url - textMorph menus

Ned Konz ned at bike-nomad.com
Wed Jul 9 14:10:21 UTC 2003


On Wednesday 09 July 2003 05:30 am, Ingo Hohmann wrote:
> with alt-6 in a textMorph I get a 'be a web url' menu entry. How do
> I find out which method is invoked on selecting this entry? (when I
> explore it, I come to
> target: aMVCMenuMorph selector: #selectMVCItem: arguments: #(16) )
>
> I would like to add a 'be a DoIt' item.
>
> Where are those menus defined? I'd like to rearrange the mouseclick
> menu, too.

Easiest way to debug/explore most modal menus is to hit Alt-. 
(interrupt) and examine the call stack, since the modal menus do 
their own polling loop.

So looking up the stack we get to ParagraphEditor>>changeEmphasis:

and just above it you enter the secret land of CmdActions and 
ShiftCmdActions, which is (partly) how ParagraphEditor decides to 
dispatch command keystrokes.

And I believe that I and others in the past have come up with change 
sets to make it easier to customize these menus and keystrokes, but I 
can't remember where I put them (my Squeak directories are 
unimaginably cluttered after 6 years of Squeaking...)

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list