2005-11-23, 11:26 PM
Well - I know that a constructor is called when an instance of an object is created but how does this apply to plugins?
I'm trying to work out where I should initialize various components, process the skin.xml, etc. etc. I'm currently doing this in the Activate method but that doesn't seem right - I have to use 'keep-alive' type flags to prevent Activate from re-initialising stuff if I exit the plugin then go back in. At the same time, I don't want my plugin to do a whole load of stuff every time the gbpvr main app. is started (if that is when the constructor is called).
Slightly confused.
Cheers,
Brian
I'm trying to work out where I should initialize various components, process the skin.xml, etc. etc. I'm currently doing this in the Activate method but that doesn't seem right - I have to use 'keep-alive' type flags to prevent Activate from re-initialising stuff if I exit the plugin then go back in. At the same time, I don't want my plugin to do a whole load of stuff every time the gbpvr main app. is started (if that is when the constructor is called).
Slightly confused.
Cheers,
Brian