Re: [Factor-talk] Window Position

2016-05-20 Thread Alexander Ilin
Hello! Answering a part of my question below. I've just stumbled upon the "Temporary files" help section with the following text: Pathnames relative to Factor's cache directory, used to store persistent intermediate files and resources: cache-file ( name -- path ) cache-directory ( -- path ) 

Re: [Factor-talk] Window Position

2016-05-19 Thread John Benediktsson
There are a lot of formats you can use, like the ``ini-file`` vocabulary (or even ``msgpack``, ``txon``, ``yaml``, etc.), but a simpler way to get it working might be to use the ``serialize`` vocabulary and just store and load Factor objects using ``object>bytes`` and ``bytes>object``. One

Re: [Factor-talk] Window Position

2016-05-18 Thread John Benediktsson
The worlds are stored in the `ui-windows` variable, I believe as the values. > On May 18, 2016, at 3:00 PM, Alexander Ilin wrote: > > Hi, John! > > Is there a list of worlds I could iterate over? > Or, if there is only one Listener, how do I get its gadget reference to call

Re: [Factor-talk] Window Position

2016-05-18 Thread Alexander Ilin
Hi, John! Is there a list of worlds I could iterate over?Or, if there is only one Listener, how do I get its gadget reference to call find-world for it? 16.05.2016, 19:14, "John Benediktsson" :Not that I'm aware of, but it wouldn't be that hard to use the ``window-loc`` property

Re: [Factor-talk] Window Position

2016-05-16 Thread John Benediktsson
Not that I'm aware of, but it wouldn't be that hard to use the ``window-loc`` property in ``world`` for each window to save/restore at appropriate points. You might run into difficulty with a key, although using the ``title`` of the world would probably be good enough. On Sun, May 15, 2016 at

[Factor-talk] Window Position

2016-05-15 Thread Alexander Ilin
Hello! Is there a vocab for Factor Listener to retain its main window position between runs? Store it in a config file or something? ---=--- Александр -- Mobile security can be enabling, not merely restricting.