<!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">
On 5/25/2023 9:52 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:3031a7e1-9d6f-ca45-0af5-2997abd65db7@free.fr"
type="cite">
<p><font size="4">Hi Juan, <br>
</font></p>
<p><font size="4">Unfortunately, the code below called from a
start up sequence does not work:</font></p>
<div style="background: none repeat scroll 0% 0% rgb(255, 255,
255); overflow: auto; width: auto; border-style: solid;
border-color: gray; border-width: 0.1em 0.1em 0.1em 0.8em;
padding: 0.2em 0.6em;">
<pre style="margin: 0pt; line-height: 125%;"><span style="color: rgb(0, 102, 187); font-weight: bold;">backgroundImage</span>
<span style="color: rgb(136, 136, 136);">"WorldMorph allInstances first"</span>
<span style="color: rgb(187, 0, 102); font-weight: bold;">UISupervisor</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">whenUIinSafeState:</span> [
<span style="color: rgb(187, 0, 102); font-weight: bold;">UISupervisor</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">ui</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">backgroundImageData: </span>(<span style="color: rgb(187, 0, 102); font-weight: bold;">DrGeoSystem</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">backgroundsPath</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">files</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">atRandom:</span> (<span style="color: rgb(187, 0, 102); font-weight: bold;">Random</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">seed:</span> <span style="color: rgb(187, 0, 102); font-weight: bold;">Time</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">now</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">nanoSecond</span>)) <span style="color: rgb(0, 102, 187); font-weight: bold;">binaryContents</span>]
</pre>
</div>
<p><!-- HTML generated using hilite.me --></p>
<p>However when coded as below, it works:</p>
<div style="background: none repeat scroll 0% 0% rgb(255, 255,
255); overflow: auto; width: auto; border-style: solid;
border-color: gray; border-width: 0.1em 0.1em 0.1em 0.8em;
padding: 0.2em 0.6em;">
<pre style="margin: 0pt; line-height: 125%;"><span style="color: rgb(0, 102, 187); font-weight: bold;">backgroundImage</span>
<span style="color: rgb(187, 0, 102); font-weight: bold;">WorldMorph</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">allInstances</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">first</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">backgroundImageData:</span>
(<span style="color: rgb(187, 0, 102); font-weight: bold;">DrGeoSystem</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">backgroundsPath</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">files</span>
<span style="color: rgb(0, 102, 187); font-weight: bold;">atRandom:</span> (<span style="color: rgb(187, 0, 102); font-weight: bold;">Random</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">seed:</span> <span style="color: rgb(187, 0, 102); font-weight: bold;">Time</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">now</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">nanoSecond</span>)) <span style="color: rgb(0, 102, 187); font-weight: bold;">binaryContents</span>
</pre>
</div>
<p><!-- HTML generated using hilite.me --></p>
<p>Strange<br>
</p>
<div class="moz-cite-prefix">Le 24/05/2023 à 22:29, Juan Vuletich
a écrit :<br>
</div>
<blockquote type="cite" cite="mid:646E73C1.2040306@cuis.st">You
can't access the World, because it is not running yet during
startup. Maybe what you need to do can be scheduled to be done
after startup finishes?<br>
<br>
Seem for example #snapshot:andQuit:embedded:clearAllClassState:
Many thins are done #whenUIinSafeState:</blockquote>
</blockquote>
<br>
Hi Hilaire,<br>
<br>
Class startup is done before morphic startup. You could do it like
this: `[
<pre style="margin: 0pt; line-height: 125%;"><span style="color: rgb(187, 0, 102); font-weight: bold;"> UISupervisor</span> <span style="color: rgb(0, 102, 187); font-weight: bold;">whenUIinSafeState:</span> [set background image ]
] forkAt: 30`
Doing it like this, it will ask for it on the first morphic sleep.
</pre>
<br>
HTH,<br>
Juan Vuletich<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>