Hi Mark,
can't work with arrows. Among other reasons, in your case the
arrow is not activated when it's data is used to intialize the editor
string (that's why you see them empty).
The model given to model-field isn't meant to be updated by the caller
anyway: it's value is used as an initialization of the editor-string, but
after that only the editor-gadget should update the input model when the
field is edited.
Maybe you should think of your problem the other way around: instead of
having data in your structure and creating arrows from pieces of it, wrap
all the data in your structure in models and pass those models to the UI ?
The UI will then update your structure when the user edits fields.
Regards,
Jon
Jon
On Tue, Dec 30, 2014 at 9:16 PM, Mark Green
wrote:
> Hi,
>
> I hope everyone had a good Christmas. I'm still struggling a bit with how
> to create a UI that alters parts of a structure.
>
> So far I can store the structure as a whole in the model slot of the
> containing pane, and I can create arrow models for the individual controls
> to refer to. The problem is writing changes back again, since the arrow
> model does not propagate changes back across itself. I see there is a
> double-ended arrow model in extra called , but it seems to depend
> on the arrow operation being invertible which extraction of part of a
> sequence (for example) is not. It is however mergable in that the data from
> the lower level model could be re-incorporated into the higher level model
> given knowledge of them both. Does anything support this?
>
> Also, does work correctly? When I try to create one, it
> seems to come up blank and editable, even if the arrow model contains data
> and is not writable.
>
> Mark
>
>
>
> --
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk