Le 11/09/2013 12:51, Guillermo Polito a écrit :
On Wed, Sep 11, 2013 at 10:03 AM, Goubier Thierry <thierry.goubier@cea.fr <mailto:thierry.goubier@cea.fr>> wrote:
Le 11/09/2013 09:49, Guillermo Polito a écrit :
Hehey! I just downloaded latest 3.0 and #bindKeyCombination: toAction: is there (you made me doubt if I did it or not! :P)
But yes, the api for 20 is on:do: and it changed for 30 to clarify.
Me, I'm getting a bit confused in 30 about that:). It seems it has changed three times in 3.0. I've seen so far being discussed:
onKey:do: onShortcut:do: onKeyCombination:do:
and now:
bindKeyCombination:toAction:
Yes, we revisited the decision a couple of times :). Sorry if that made trouble...
The last one has the merit of being perfectly clear :)
Has on:do: been removed or deprecated in 3.0?
Not yet. As you can see if you browse latest version, you have
on: aShortcut do: anAction ^ self bindKeyCombination: aShortcut toAction: anAction
That should be actually deprecated (to avoid people using it and confuse it with exception handling), yes...
And to force all users of it to switch to the new version when porting to 3.0 as well. If it looks as reasonably final, I'll add an issue to bring the new selector to 2.0. Thanks :) Thierry
Thierry
On Wed, Sep 11, 2013 at 9:32 AM, kilon <thekilon@yahoo.co.uk <mailto:thekilon@yahoo.co.uk> <mailto:thekilon@yahoo.co.uk <mailto:thekilon@yahoo.co.uk>>> wrote:
Ah ok, no problemo I am in no hurry, and I agree its a very important change as it makes things a lot more readable.
-- View this message in context: http://forum.world.st/How-to-__bind-keyboard-shortcuts-to-__messages-tp47075... <http://forum.world.st/How-to-bind-keyboard-shortcuts-to-messages-tp4707525p4...> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95