<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I just used the Morph implementation of that pattern just as an
example. A couple of emails ago you said "I need to search for a
parent object". Then, if each object knows its parent, then the same
pattern can be used, just calling then "parent" instead of owner.
This is, iterating parents without building collections.<br>
<br>
This is useful only if your objects also form a tree structure where
every object knows its parent in the tree.<br>
<br>
Apologies for not studying your model in detail. Haven't found the
time for that, and so I can only suggest ideas to consider and
possibly discard.<br>
<br>
HTH,<br>
<br>
<br>
On 7/3/2023 10:30 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:d046997c-e9d1-e668-c340-c4d2aaca1b4e@free.fr"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p><font size="4">If I understand correctly what you mean, my
situation is a bit different as my business objects do not
know about their direct owner. My objects are model not morph.<br>
</font></p>
<p>Hilaire<br>
</p>
<div class="moz-cite-prefix">Le 03/07/2023 à 14:28, Juan Vuletich
a écrit :<br>
</div>
<blockquote type="cite" cite="mid:64A2BEF1.7000700@cuis.st">If
you're just looking for a parent object (as you mentioned in
another email), you don't need to build the collection at all.
See #firstOwnerSuchThat: that ends doing #withAllOwnersDo: .
This is how we do that kind of search in Morphic. <br>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>