[squeak-dev] [MC] unload action and postload actions

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

[squeak-dev] [MC] unload action and postload actions

Alexandre Bergel-4
Dear List,

I was wondering whether there is a way to specify unload action and  
postload actions when saving a monticello package?

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [MC] unload action and postload actions

keith1y
Alexandre Bergel wrote:
> Dear List,
>
> I was wondering whether there is a way to specify unload action and
> postload actions when saving a monticello package?
>
> Cheers,
> Alexandre
There is a "Scripts" button in the Monticello Browser. This is supported
by Monticello 1.0 , but it depends upon whether or not the loaded
version of PackageInfo supports it.

Monticello 1.5/1.6 as loaded by
http://installer.pbwiki.com/LevelPlayingField support them. The scripts
are added as properties of PackageInfo.

There additional hooks in MC1.5 however you add the code as class
methods, and you can add the code as a class method on someone elses
package if you want to add/remove instVars to someone elses class

Methods are named like so: #mcAfterInstall* #mcAfterRemoval*
#mcOnInstall* #mcOnUninstall*

best regards

Keith

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [MC] unload action and postload actions

Tapple Gao
On Sat, Oct 11, 2008 at 03:31:15PM +0100, Keith Hodges wrote:

> Alexandre Bergel wrote:
> > Dear List,
> >
> > I was wondering whether there is a way to specify unload action and
> > postload actions when saving a monticello package?
> >
> > Cheers,
> > Alexandre
> There is a "Scripts" button in the Monticello Browser. This is supported
> by Monticello 1.0 , but it depends upon whether or not the loaded
> version of PackageInfo supports it.
>
> Monticello 1.5/1.6 as loaded by
> http://installer.pbwiki.com/LevelPlayingField support them. The scripts
> are added as properties of PackageInfo.
>
> There additional hooks in MC1.5 however you add the code as class
> methods, and you can add the code as a class method on someone elses
> package if you want to add/remove instVars to someone elses class
>
> Methods are named like so: #mcAfterInstall* #mcAfterRemoval*
> #mcOnInstall* #mcOnUninstall*

Also, anytime a class is removed, it's #unload method is called,
just like it's #initialize method is called on load

--
Matthew Fulmer -- http://mtfulmer.wordpress.com/

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [MC] unload action and postload actions

Bergel, Alexandre
Thanks for your answer.

Cheers,
Alexandre


On 11 Oct 2008, at 17:40, Matthew Fulmer wrote:

> On Sat, Oct 11, 2008 at 03:31:15PM +0100, Keith Hodges wrote:
>> Alexandre Bergel wrote:
>>> Dear List,
>>>
>>> I was wondering whether there is a way to specify unload action and
>>> postload actions when saving a monticello package?
>>>
>>> Cheers,
>>> Alexandre
>> There is a "Scripts" button in the Monticello Browser. This is  
>> supported
>> by Monticello 1.0 , but it depends upon whether or not the loaded
>> version of PackageInfo supports it.
>>
>> Monticello 1.5/1.6 as loaded by
>> http://installer.pbwiki.com/LevelPlayingField support them. The  
>> scripts
>> are added as properties of PackageInfo.
>>
>> There additional hooks in MC1.5 however you add the code as class
>> methods, and you can add the code as a class method on someone elses
>> package if you want to add/remove instVars to someone elses class
>>
>> Methods are named like so: #mcAfterInstall* #mcAfterRemoval*
>> #mcOnInstall* #mcOnUninstall*
>
> Also, anytime a class is removed, it's #unload method is called,
> just like it's #initialize method is called on load
>
> --
> Matthew Fulmer -- http://mtfulmer.wordpress.com/
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.