Re: [Pyobjc-dev] Formal protocol and extra methods
Brought to you by:
ronaldoussoren
|
From: Johan R. <joh...@gm...> - 2009-04-24 13:26:26
|
> Could you provide a small self-contained example that shows the problem? I don't mind if I have to download a framework, but at least provide all python code that's needed to reproduce the problem. I'll try to do that when I get a few minutes over, thanks. > What version of PyObjC are you using? Whatever comes with Leopard. > And to answer your latest question: you have to create informal protocol specifications, but only for methods where not all arguments are objects or where the result is not either "void" or an object. The Foundation.protocols module you mention is an example of that, although later versions of PyObjC use an XML based description file. I managed to get everything working just fine by describing the informal protocol by hand, but how do I use an XML file for this? Best Regards, Johan |