Re: [BLACKBOX] How to 'embed'

From: [at]} <Wojtek>
Date: Tue, 4 Oct 2011 00:42:45 -0400

----boundary-LibPST-iamunique-1220226186_-_-
Content-type: text/plain

"embedding of one view into a model" is a self contradiction.

The model provides data "1, 2, 3, 4...". The data makes no assumptions how
it will be displayed, or whether it will be displayed at all.

The view imports the model. So it knows the details of the model (array,
record, list, double-linked-list, DAG, or any other fancy structure).
However, there is a firm assumption that no details about the display go
into the model. The model can only provide the numbers, but no details
about the display.

The Model-View separayion means the separation of concerns. The model can
calculate. The view can display the results of calculations.

Your question is breaking the separation. You are trying to put the
imported concerns back into the importee. This has to lead to circular
data structures. Hence, it is not implementable.

W.


> Folks,
>
> I am old and tired of poking through documentation and code.
> So if you can please help me out it would be greatly appreciated.
>
> If you search the BB documentation for the word 'embed' you find
> many hits. But no where does it explicitly state the steps needed
> to do an embedding of one view into a model.
>
> What are the least number of steps to embed a view into a model?
>
> =
> My paltry efforts center around
>
> Views.InstallFrame(f, view, l, t, level, focus);
>
> That is, given the frame (f) of the view in which one wants to embed
> the view 'view' one does the above. BUT BB complains that view
> does not have a context nor a domain. Well that is what I was
> hoping
> the InstallFrame procedure would provide to view.
>
> So I can start and assign a context to view taken from the context
> of
> f.view.context BUT I believe that is wrong.
>
> Given a bare extension of Views.View with no additional structure
> TYPE View = POINTER TO RECORD(Views.View) END;
> as the container view I wish to embed arbitrary other Views.View
> as the contained view AND when the container view is restored
> (which unto itself does nothing) how do I get all of the contained
> views
> to restore themselves (or does that happen automatically OR do I
> need to forward a message)?
>
> Doug
>
>
> ---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1220226186_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgX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FBPSU5URVIgVE8gUkVDT1JEKFZpZXdzLlZpZXcpIEVORDtccGFyDQo+ICAgICAgYXMg
dGhlIGNvbnRhaW5lciB2aWV3IEkgd2lzaCB0byBlbWJlZCBhcmJpdHJhcnkgb3RoZXIgICAgIFZp
ZXdzLlZpZXdccGFyDQo+ICAgICAgYXMgdGhlIGNvbnRhaW5lZCB2aWV3IEFORCB3aGVuIHRoZSBj
b250YWluZXIgdmlldyBpcyAgICAgcmVzdG9yZWRccGFyDQo+ICAgICAgKHdoaWNoIHVudG8gaXRz
ZWxmIGRvZXMgbm90aGluZykgaG93IGRvIEkgZ2V0IGFsbCBvZiB0aGUgY29udGFpbmVkXHBhcg0K
PiAgdmlld3NccGFyDQo+ICAgICAgdG8gcmVzdG9yZSB0aGVtc2VsdmVzIChvciBkb2VzIHRoYXQg
aGFwcGVuIGF1dG9tYXRpY2FsbHkgT1IgZG8gSVxwYXINCj4gICAgICBuZWVkIHRvIGZvcndhcmQg
YSBtZXNzYWdlKT9ccGFyDQo+XHBhcg0KPiAgICAgIERvdWdccGFyDQo+XHBhcg0KPlxwYXINCj4g
IC0tLS0gVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBC
TEFDS0JPWCIgdG9ccGFyDQo+IExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSFxwYXINClxwYXINClxw
YXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJT
SUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0hccGFyDQp9
----boundary-LibPST-iamunique-1220226186_-_---
Received on Tue Oct 04 2011 - 06:42:45 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:11 UTC