On 04 Jan 2014, at 16:39, Benjamin <Benjamin.VanRyseghem.Pharo@gmail.com> wrote:
The should be a dispatch to not expose widget in:
aTab buildWidget widget
Then, this
aTab ensureMorphicAdapter asWidget
looks really weird.
Could you provide more info about the DNU or should I try to read your mind? :P
it just says that aTab (which is a TabModel) DNU buildWidget. btw⦠I think it MorphicTabManagerAdapter also misses: removeTab: aTab aTab ensureMorphicAdapter asWidget delete. (or something like that)
Ben
On 04 Jan 2014, at 12:36, Esteban Lorenzano <estebanlm@gmail.com> wrote:
Hi,
I was playing with Spec and I ran into a DNU problem when trying to add dynamically tabs. Looks for me that this:
addTab: aTab
self widgetDo: [ :w | w addTab: aTab buildWidget widget ]
should instead be:
addTab: aTab
self widgetDo: [ :w | w addTab: aTab ensureMorphicAdapter asWidget ]
but not sure about⦠The problem is that original form works fine if adding static (on original initialisation)â¦
Esteban