Smalltalk 为什么赢了';我的行动';什么是执行的捷径?
在Moose 4.6中,以下是我的代码:Smalltalk 为什么赢了';我的行动';什么是执行的捷径?,smalltalk,pharo,moose-technology,Smalltalk,Pharo,Moose Technology,在Moose 4.6中,以下是我的代码: finder := GLMFinder new. finder show: [:a | a dynamic display: (GLMTextPresentation new forSmalltalk); act: [self halt] on: $k entitled: 'Implementors (k)' ]. finder openOn: 'Waaaaaaa' 如果我单击这个小菜单项,就会出现一个调试器。
finder := GLMFinder new.
finder show: [:a |
a dynamic display: (GLMTextPresentation new forSmalltalk);
act: [self halt]
on: $k
entitled: 'Implementors (k)' ].
finder openOn: 'Waaaaaaa'
如果我单击这个小菜单项,就会出现一个调试器。但是,如果我按apple-k,它不会。为什么不呢?在动态演示中,动作似乎不起作用。但是,如果将操作添加到内部演示文稿(在本例中是添加到GLMTextPresentation),它将完美地工作
在动态演示中,操作似乎不起作用。但是,如果将操作添加到内部演示文稿(在本例中是添加到GLMTextPresentation),它将完美地工作
finder := GLMFinder new.
finder show: [:a |
a dynamic display:
(GLMTextPresentation new forSmalltalk;
act: [self halt]
on: $k
entitled: 'Implementors (k)')
].
finder openOn: 'Waaaaaaa'