Re: [Pharo-dev] Adding a serialize menu item?

2016-03-14 Thread 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  
> wrote:
> 
> https://pharo.fogbugz.com/f/cases/17818/Add-menu-item-to-serialize-contents-from-inspector
>  
> 
> 
> Cheers,
> 
> Hernán
> 
> 2016-03-13 8:45 GMT-03:00 stepharo  >:
> 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
> 
> 
> 
> 



Re: [Pharo-dev] Adding a serialize menu item?

2016-03-13 Thread Hernán Morales Durand
https://pharo.fogbugz.com/f/cases/17818/Add-menu-item-to-serialize-contents-from-inspector

Cheers,

Hernán

2016-03-13 8:45 GMT-03:00 stepharo :

> 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
>>
>>
>
>


Re: [Pharo-dev] Adding a serialize menu item?

2016-03-13 Thread stepharo

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






Re: [Pharo-dev] Adding a serialize menu item?

2016-03-12 Thread Mariano Martinez Peck
On Sat, Mar 12, 2016 at 5:27 PM, Hernán Morales Durand <
hernan.mora...@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


Re: [Pharo-dev] Adding a serialize menu item?

2016-03-12 Thread Sven Van Caekenberghe

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