Evaluá asi: TestPresenter show setFocus

Con eso te debería andar, en tu ejemplo.
Sacale el onViewOpened con todo lo que le pusiste. Para atrapar ese
evento necesita tener el foco.


Diego Coronel


On Jul 16, 12:47 pm, Jose Gregoris <[email protected]> wrote:
> Hola diego, gente
>
> Disculpen por preguntar boludeces, pero no entiendo como funciona esto.
>
> Pregunta boluda:
>
> Si heredo de Presenter  supongamos TestPresenter y solo defino un 
> #onKeyPressed:
>
> Luego hago  TestPresenter  show .
> Esto debería llamar al #onKeyPressed: ?
> A mi no me funca :(
>
> Pero luego si hago esto:
>
> TestPresenter>>onViewOpened
>     [self setFocus] postToInputQueue.
>     super onViewOpened
>
> Esto hace que pase por el  #onKeyPressed:
>
> Es obvio que me estoy perdiendo de algo.
> Serían tan amables en ilustrarme? please
>
> kiko
>
> --- El vie 16-jul-10, [email protected] <[email protected]> escribió:
>
> De: [email protected] <[email protected]>
> Asunto: [clubSmalltalk] Re: Dolphin #onKeyPressed:
> Para: "ClubSmalltalk" <[email protected]>
> Fecha: viernes, 16 de julio de 2010, 14:10
>
> Si escribiste los métodos onViewOpened o createSchematicWiring fijate
> si no te olvidaste de los #super. Suele ser una causa para que luego
> no se conecten los eventos.
>
> Diego
>
> On Jul 15, 8:51 am, Jose Gregoris <[email protected]> wrote:
>
> > Hola
>
> > Disculpen es una pregunta media boluda, pero como no veo la solución 
> > pregunto.
> > Necesito detectar el #onKeyPressed: en un presenter.
> > Defino dicho  mensaje , pero luego nunca es llamada !.
> > Estaba viendo el #sender  e #implementor  y no logro ver nada raro.
> > Si creo un Shell  que no tenga nada adentro   anda , pero si le agrego 
> > cualquier cosa deja de funcionar.
>
> > Es curioso pues nunca tuve que hacer un onKeyPressed: , porque usaba la 
> > detección de TV3D en otros  casos.
>
> > Que me esta faltando ?
>
> > saludos kiko
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
>
> http://www.clubSmalltalk.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]

http://www.clubSmalltalk.org

Responder a