[Cuis-dev] Accessing World in a start up sequence

Hilaire Fernandes hfern at free.fr
Thu May 25 05:52:13 PDT 2023


Hi Juan,

Unfortunately, the code below called from a start up sequence does not work:

backgroundImage
"WorldMorph allInstances first"
  UISupervisor  whenUIinSafeState:  [
    UISupervisor  ui
       backgroundImageData: (DrGeoSystem  backgroundsPath  files  atRandom:  (Random  seed:  Time  now  nanoSecond))binaryContents]

However when coded as below, it works:

backgroundImage
	WorldMorph  allInstances  first  backgroundImageData:  	
		(DrGeoSystem  backgroundsPath  files  
			atRandom:  (Random   seed:  Time  now  nanoSecond))binaryContents  

Strange

Le 24/05/2023 à 22:29, Juan Vuletich a écrit :
> 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?
>
> Seem for example #snapshot:andQuit:embedded:clearAllClassState: Many 
> thins are done #whenUIinSafeState:

-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230525/e8424a32/attachment.htm>


More information about the Cuis-dev mailing list