How to execute code when after loading a package

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

How to execute code when after loading a package

Julien Delplanque
Hi all,

I have a package for which I need to execute some code after it is
loaded in an image.

This package have no dependency so I don't know if it is possible to do
it without using a baseline but I guess it's not.

Thanks,

Julien

Reply | Threaded
Open this post in threaded view
|

Re: How to execute code when after loading a package

Mariano Martinez Peck
I know there was/is a way in Monticello itself, but I think it was never widely used. I think most common solution is to use #postLoadDoIt: at different levels (packages, groups, whole project, etc) of Metacello. But yeah, you need a Metacello conf for that. 

On Thu, Aug 20, 2015 at 4:11 PM, Julien Delplanque <[hidden email]> wrote:
Hi all,

I have a package for which I need to execute some code after it is loaded in an image.

This package have no dependency so I don't know if it is possible to do it without using a baseline but I guess it's not.

Thanks,

Julien




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

Re: How to execute code when after loading a package

Guillaume Larcheveque
you can also define your code in a class in the #initialize method (class side)

2015-08-24 17:21 GMT+02:00 Mariano Martinez Peck <[hidden email]>:
I know there was/is a way in Monticello itself, but I think it was never widely used. I think most common solution is to use #postLoadDoIt: at different levels (packages, groups, whole project, etc) of Metacello. But yeah, you need a Metacello conf for that. 

On Thu, Aug 20, 2015 at 4:11 PM, Julien Delplanque <[hidden email]> wrote:
Hi all,

I have a package for which I need to execute some code after it is loaded in an image.

This package have no dependency so I don't know if it is possible to do it without using a baseline but I guess it's not.

Thanks,

Julien




--



--
Guillaume Larcheveque

Reply | Threaded
Open this post in threaded view
|

Re: How to execute code when after loading a package

Julien Delplanque
OK, thanks for your answers :)

On 24/08/15 17:37, Guillaume Larcheveque wrote:

> you can also define your code in a class in the #initialize method (class
> side)
>
> 2015-08-24 17:21 GMT+02:00 Mariano Martinez Peck <[hidden email]>:
>
>> I know there was/is a way in Monticello itself, but I think it was never
>> widely used. I think most common solution is to use #postLoadDoIt: at
>> different levels (packages, groups, whole project, etc) of Metacello. But
>> yeah, you need a Metacello conf for that.
>>
>> On Thu, Aug 20, 2015 at 4:11 PM, Julien Delplanque <[hidden email]>
>> wrote:
>>
>>> Hi all,
>>>
>>> I have a package for which I need to execute some code after it is loaded
>>> in an image.
>>>
>>> This package have no dependency so I don't know if it is possible to do
>>> it without using a baseline but I guess it's not.
>>>
>>> Thanks,
>>>
>>> Julien
>>>
>>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>
>