Hola Diógenes: Lo hago de memoria, pero creo que tenes mal el #model
model: anObject super model: anObject myPresenter model: (ListModel on: aCollection). myPresenter selection: aCollection first y sino la que nunca falla: #onViewOpened myPresenter selection: aCollection first. myPresenter ensureSelectionVisible Recordá que el model de un ListPresenter es un ListModel, el cual "contiene" una list que es una OrderedCollection o SortedCollection. Por lo que deberías hacer: myPresenter model: ListModel new. o myPresenter list: OrderedCollection new. Saludos! Esteban A. Maringolo El día 20 de abril de 2011 18:55, Diogenes Moreira <[email protected]> escribió: > Buenas.. > Algo loco, hace ya casi un año que estoy laburando con Dolphin, pero tengo > que hacer una pregunta de ultra newby... (Es porque estoy manteniendo una > aplicación que tiene su framework de presentación.. y ahora decidí explorar > el MVP en crudo. ) > Mi pregunta de newby es.. > En un Dialog tengo un Subcomponent que es un ListPresenter. > > MyClass>>CreateComponents > ... > myPresenter := self add: ListPresenter new name:'myPresenter'. > ... > > ahora bien en el > MyClass>> model: myObject > myPresenter list: (ListModel on: aCollection ). > myPresenter selection: aCollection first. > > segun entiendo esto debería mostrarme seleccionado el objecto en el > comboBox.. pero nada... > Cualquier pista será agradecida o algún howto de MVP de dolphin.. que la doc > en linea es muy poca. > Saludos y Gracias > > -- > 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
