----boundary-LibPST-iamunique-751858359_-_-
Content-type: text/plain
Hi:
>
> This is my second version (try) of translation. Now I have the following
> problems:
>
> 1. IF the instruction "Store.Join" is active THEN I can't copy a button via
> cut and paste but I can save and load documents with buttons.
>
> 2. IF the instruction "Store.Join" is deleted THEN I can copy buttons via
> cut and paste but I can't save and load document with buttons.
I have had the same problem in my modules. This is related to Domains,
which are documented rather poorly. The OuS guys explained to me that
Domains are somehow necessary in order to properly store and load
documents. In a pinch, every BlackBox window is a separate document.
A given object can belong to at most one document. Once you have committed
the object to a given document, the object cannot be re-commited to
another one. The Stores.Join does exactly this, it joins the object
to the document's "domain". From that point on you can save the whole
document to disk, including all the objects that "belong to the domain"
of this document.
There is only one exception to the statement "every BlackBox window
is a separate document". You can open multiple views of the SAME
document by cloning a windows. Such cloned windows are indicated
by brackets <> around the window's name. These cloned windows are
multiple views of the same document.
BlackBox does not allow multiple views of the SAME object in DIFFERENT
documents. Every object can be viewed multiple times on screen, but
only in the cloned windows described above. You may be used to System-3
Gadgets where there were no such limitations. This is not the case with
Blackbox. Just remember: every object can only belong to (at most)
ONE document. Once committed by executing Stores.Join, the object
is committed forever. You cannot save a document to disk unless
all its objects have been joined to the domain of the document.
Morover, all the "children objects" that you may want to save
have to be joined as well. (Example: your object is visualizing
a state of another object, and you want to save both your object
and the object being visualized. The object being visualized has
to be joined as well.)
This looks like a serious limitation, because the restriction applies
not only to the object itself, but also to all the "children objects"
mentioned above. If you now recall the Model-View-Cotroller paradigm,
and you realise that the View object has to be joined before being saved
to disk, and you realise that the Model has to be joined as well,
it follows that not only the View but also the Model can be shown
in at most one document. This is a VERY serious modification of the MVC,
as we know it from the Oberon System.
I have stepped upon this problem once I designed my Gr framework
along the MVC lines. Namely, I wanted to acquire numerical data into
a mute GrHistogram (a model), and to visualize the data in many different
places using a GrView. This looks exactly like the textbook application
from Reiser and Wirth, does it not? But it did not work. I encountered
exactly the same problem as you did. I could not save my views to disk.
The error messages were criptic. (Something about Stores.Join. What the
hell is Stores.Join?) Many weeks later, after exchanging tons of e-mails
with OuS supprt guys, I finally realised how seriously they have modified
MVC without clearly explaining they did so.
I am not saying this is without a merit. I am only saying that the
Domains and Stores.Join are very confusing, given the fact that BlackBox
users quite likely have the Oberon System background. It would help
if OuS have prominently said what they did in reference to the MVC,
as known from the Oberon literature.
Is there a practical way out? There is a workaround, which I implemented
in Gr. Use deep copies instead of shallow ones. Shallow copies will give
you domain violations, deep copies will not. This means your design has
to be modified to take the Domains into account. The design cannot be
along the classic MVC lines, for the reasons just explained.
Please see the Gr modules for implementation details. I incuded many
comments about Stores.Join in the source code.
Hope it helps,
Wojtek
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-751858359_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpOlx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