> This is rather cool, and pretty useful.
>
> One thing you may want to do is to strip all calls to the -release and
> -retain methods, those are handled automaticly by PyObjC. Looking at the
> source code for the converter that's probably a non-trivial change.
>
> Ronald
>
>
Removing them should be fairly trivial, but you'll probably end up with some
lines that have no side effects, like if you do:
[[foo bar] release];
which would just be translated to:
foo.bar()
If that's a trivial getter then of course the entire line can be removed,
but figuring out from the script if the line has side effects would require
whole program analysis yea.
So in conclusion: yes and no, depending on how good of a result you want :P
Best Regards,
Anders Hovmöller
|