On 08 Jun 2014, at 15:21, webwarrior <reg@webwarrior.ws> wrote:
I want to make a layout based on TableLayout.
Short answer: itâs not really supported yet. If you want to give it a try, itâs really welcome ;)
However, I noticed that SpecInterpreter has some hardcoded behaviour for ContainerModel in computeSpecFrom:selector: method. Is this behaviour really important, and if yes, how can I replicate it?
Itâs really needed (even thought I do not remember why exactly now (but I think itâs to prevent some infinite loops)). The solution as I was thinking about it would be to have a different keyword per layout. Today, you start your layout with `SpecLayout composed`, where it could be `SpecLayout table`. Or it could be `SpecTableLayout composed`. The main issue you will have is that Spec does not directly rely on Morphic layouts. So you will have to implement some layouting algorithm by yourself. Hope it helps, Ben