Hello,
I have a Cocoa app with loads plugins. I want to use some python plugins but I have problems getting them to work.

The Plugin implementation contains:

myExport = objc.protocolNamed('myExportProtocol')
class GSExporter(NSObject, myExport):
        def __init__(self):
...

But if I do:

currPrincipalClass = [currBundle principalClass];
if(currPrincipalClass && [currPrincipalClass conformsToProtocol:@protocol(myExportProtocol)])

it works for the cocoa plugins but not for the python one.

If I just ask for:

if(currPrincipalClass)

the python plugin loads and works as expected but I would like to be sure that the plugin conforms.

Do I miss something something?

Georg
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to