Adding a serialize menu item?
Hi guys, Frequently I need to serialize contents from an inspector/explorer for later work or because image cannot work with big data sets. Do you find yourself doing this from an inspector? FLSerializer serialize: self toFileNamed: 'MyBigArrayOrString.FL' Is there a reason for not having a "Serialize" menu entry in the Raw palette? On the other side, from the File Browser a "Materialize" could be added for .FL files. What do you think? Cheers, Hernán
On 12 Mar 2016, at 21:27, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Hi guys,
Frequently I need to serialize contents from an inspector/explorer for later work or because image cannot work with big data sets. Do you find yourself doing this from an inspector?
FLSerializer serialize: self toFileNamed: 'MyBigArrayOrString.FL'
Is there a reason for not having a "Serialize" menu entry in the Raw palette?
Good idea.
On the other side, from the File Browser a "Materialize" could be added for .FL files.
I think this already exists, but the extension should be .fuel (just .FL is to simple).
What do you think?
Cheers,
Hernán
On Sat, Mar 12, 2016 at 5:27 PM, Hernán Morales Durand < hernan.morales@gmail.com> wrote:
Hi guys,
Frequently I need to serialize contents from an inspector/explorer for later work or because image cannot work with big data sets. Do you find yourself doing this from an inspector?
FLSerializer serialize: self toFileNamed: 'MyBigArrayOrString.FL'
Is there a reason for not having a "Serialize" menu entry in the Raw palette? On the other side, from the File Browser a "Materialize" could be added for .FL files.
What do you think?
Sure. And as you said, I would serialize the contents (the object being inspected) instead of the inspector. Because the inspector may reach UI elements and lots of stuff. Or... serialize the inspector, but be sure to use Fuel provided hooks to cut the graph to be traversed that you know that it may bring lot of unneeded stuff. -- Mariano http://marianopeck.wordpress.com
Package it with Fuel :) Le 12/3/16 21:27, Hernán Morales Durand a écrit :
Hi guys,
Frequently I need to serialize contents from an inspector/explorer for later work or because image cannot work with big data sets. Do you find yourself doing this from an inspector?
FLSerializer serialize: self toFileNamed: 'MyBigArrayOrString.FL'
Is there a reason for not having a "Serialize" menu entry in the Raw palette? On the other side, from the File Browser a "Materialize" could be added for .FL files.
What do you think?
Cheers,
Hernán
https://pharo.fogbugz.com/f/cases/17818/Add-menu-item-to-serialize-contents-... Cheers, Hernán 2016-03-13 8:45 GMT-03:00 stepharo <stepharo@free.fr>:
Package it with Fuel :)
Le 12/3/16 21:27, Hernán Morales Durand a écrit :
Hi guys,
Frequently I need to serialize contents from an inspector/explorer for later work or because image cannot work with big data sets. Do you find yourself doing this from an inspector?
FLSerializer serialize: self toFileNamed: 'MyBigArrayOrString.FL'
Is there a reason for not having a "Serialize" menu entry in the Raw palette? On the other side, from the File Browser a "Materialize" could be added for .FL files.
What do you think?
Cheers,
Hernán
Thanks Hernán. Just for completeness: theres Object>>serializeToFileNamed: as a âshorthandâ. Cheers, Max
On 14 Mar 2016, at 07:43, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
https://pharo.fogbugz.com/f/cases/17818/Add-menu-item-to-serialize-contents-... <https://pharo.fogbugz.com/f/cases/17818/Add-menu-item-to-serialize-contents-...>
Cheers,
Hernán
2016-03-13 8:45 GMT-03:00 stepharo <stepharo@free.fr <mailto:stepharo@free.fr>>: Package it with Fuel :)
Le 12/3/16 21:27, Hernán Morales Durand a écrit :
Hi guys,
Frequently I need to serialize contents from an inspector/explorer for later work or because image cannot work with big data sets. Do you find yourself doing this from an inspector?
FLSerializer serialize: self toFileNamed: 'MyBigArrayOrString.FL'
Is there a reason for not having a "Serialize" menu entry in the Raw palette? On the other side, from the File Browser a "Materialize" could be added for .FL files.
What do you think?
Cheers,
Hernán
participants (5)
-
Hernán Morales Durand -
Mariano Martinez Peck -
Max Leske -
stepharo -
Sven Van Caekenberghe