Hello
once again me ;(
I have an other problem:
My program load some plugins with this code:
for(NSString * currPath in bundlePaths)
{
currBundle = [NSBundle bundleWithPath:currPath];
if(currBundle)
{
currPrincipalClass = [currBundle principalClass];
//if(currPrincipalClass && [currPrincipalClass
conformsToProtocol:aProtocol]) //1
if(currPrincipalClass)
{
[bundles addObject:currBundle];
}
}
}
The plugin looks like this:
import objc
from Foundation import *
from AppKit import *
#import sys, os, re
MyExport = objc.protocolNamed('MyExport')
class GSExporter(NSObject, MyExport):
def description(self):
return "This is a description"
def interfaceVersion(self):
return 1
def fileType(self):
return "txt"
def export_toPath_(self, GSObj, Path):
if GSFontObj:
print "Exportiere:", GSObj.name()
# Do the Stuff
If I do load this Plugin, I cannot run python scripts with
"PyRun_SimpleString()" any more.
I get the following Message in the Console:
> Re-enabling shared library breakpoint 1
> Xcode could not locate source file: import.c (line: 320)
I do init python in the main.m
does anyone has a suggestion?
Thanks in advance
Georg
p.s. an other small question: why does the python plugin does not
"conformsToProtocol:" even if I declare it? Do I miss something?
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig