これは機能します(デバッガーが起動します):
bubbler := GLMFinder new.
bubbler show: [:a |
a text
selectionPopulate: #selection
on: $k
entitled: 'Implementors (k)'
with: [ :text | text inspect. self halt]].
bubbler openOn: 'Waaaaaaa'
しかし、これはしません (デバッガーは起動しません):
bubbler := GLMFinder new.
bubbler show: [:a |
a dynamic display: (GLMTextPresentation new forSmalltalk);
selectionPopulate: #selection
on: $k
entitled: 'Implementors (k)'
with: [ :text | text inspect. self halt]].
bubbler openOn: 'Waaaaaaa'
どちらも同じことを行うはずです: テキスト ビューで apple-k が押されると停止します。ただし、2 番目のスニペット (最初のスニペットとは異なり、動的なプレゼンテーションを使用します) は、アクションをテキスト プレゼンテーションに転送しません。それで、それはなぜですか?アクションを動的なプレゼンテーションに関連付けるにはどうすればよいでしょうか?