Alexandre Bergel | 11 Oct 12:16
Favicon

[MC] unload action and postload actions

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
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.

Keith Hodges | 11 Oct 16:31

Re: [MC] unload action and postload actions

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

Matthew Fulmer | 11 Oct 17:40
Gravatar

Re: [MC] unload action and postload actions

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/

(Continue reading)

Bergel, Alexandre | 13 Oct 07:14
Favicon

Re: [MC] unload action and postload actions

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
>>
(Continue reading)


Gmane