Adding a serialize menu item?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding a serialize menu item?

hernanmd
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

Reply | Threaded
Open this post in threaded view
|

Re: Adding a serialize menu item?

Sven Van Caekenberghe-2

> On 12 Mar 2016, at 21:27, Hernán Morales Durand <[hidden email]> 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
>


Reply | Threaded
Open this post in threaded view
|

Re: Adding a serialize menu item?

Mariano Martinez Peck
In reply to this post by hernanmd


On Sat, Mar 12, 2016 at 5:27 PM, Hernán Morales Durand <[hidden email]> 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. 


--
Reply | Threaded
Open this post in threaded view
|

Re: Adding a serialize menu item?

stepharo
In reply to this post by hernanmd
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
>


Reply | Threaded
Open this post in threaded view
|

Re: Adding a serialize menu item?

hernanmd

2016-03-13 8:45 GMT-03:00 stepharo <[hidden email]>:
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




Reply | Threaded
Open this post in threaded view
|

Re: Adding a serialize menu item?

Max Leske
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 <[hidden email]> wrote:


2016-03-13 8:45 GMT-03:00 stepharo <[hidden email]>:
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