Hi

2017-04-29 20:36 GMT+02:00 Peter Uhnak <i.uh...@gmail.com>:

> No, it is not. It has hard wired bindings from certain names to morphic
> adapters, but only if you don't actually specify the target calss.
> In other words, if in your #specLayout you specify a name that has a
> binding, then the binding will be used; if there is no such binding, then
> the class will be instantiated directly.
>
> So for example if you specify:
> * LabelAdapter -> there is binding from LabelAdapter to
> MorphicLabelAdapter, so MorphicLabelAdapter will be instantiated
> * MorphicLabelAdapter -> there are no bindings for this name, so it will
> be instantiated directly
> * CocoaLabelAdapter -> there are no bindings for this name, so it will be
> instantiated directly
>

But we should not reference directly platform specific widgets when we
define spec layout. Otherwise we will be forced to copy every layout method
(like #defaultSpec) for each platform.
And it breaks goal of Spec to be able open application with different
backends without code modification.

I am sure you know what I wrote. So probably I not understand what you mean.

Reply via email to