As mentioned in the first sentence of my original post, the methods are 
declared as public. So that is not the problem.

I dug a little deeper to find other cases where this *does* work, and it turns 
out that methods of a subclass *can* be called when the calling code is in a 
module. But not if it is not in a module.

Regarding Christian's comment, yes I have tried calling it via the subclass 
name, e.g. MyWinUSBNotification.update. Actually I think I've tried every 
possible combination :-)

Thanks,
Julia




Message: 3
Date: Thu, 20 Sep 2012 13:54:57 +0200
From: Robin Lauryssen-Mitchell 
<[email protected]<mailto:[email protected]>>

Just a random thought - are your methods marked Public?


From: Julia Truchsess 
<[email protected]<mailto:[email protected]><mailto:[email protected]>>
Date: Thursday, September 20, 2012 6:57 PM

I've made a subclass of an MBS object (WinUSBNotificationMBS) and added some 
public methods to it, but I am unable to call these methods from outside the 
class.

Message: 6
Date: Thu, 20 Sep 2012 19:35:05 +0200
From: Christian Schmitz 
<[email protected]<mailto:[email protected]>>

your variables are declared with the name of the subclass as type or the 
WinUSBNotificationMBS name?

So if you have subclass MyWinUSBNotification and you declare a property for it, 
please use MyWinUSBNotification and not WinUSBNotificationMBS.

Greetings
Christian

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to