[Pythonmac-SIG] Loading bridgesupport files - pyObjC

Ben Jack benthejack at gmail.com
Tue Jan 19 00:41:04 CET 2010


Hi there,
I am currently delving into pyObjC, but have been running into some
difficulty's with using the bridgesupport files for the framework I am
using.
I have the basics working using objc selectors for example if I have a
delegate function buttonChanged_isPressed_ (int1, int2) :
buttonChanged_isPressed_ = objc.selector(buttonChanged_isPressed_,
signature='v16 at 0:4i8B12')

but It seems to me like this is just restating what the bridgesupport file
has already defined (I don't think it is even being properly loaded when I
load the framework). I could possibly keep defining these signatures for
functions, but my problem is with the low level c structures which aren't
understood by python.

I have this project working fine in ruby, which reads the bridgesupport file
when I load the framework and does all the dirty work as far as creating
signatures for me.

Essentially what I am asking is, is there any simple way to direct python to
the bridgesupport file when I load up the framework, and does this negate
the need to specifically create selectors for my delegate functions?


cheers,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20100119/b12018a1/attachment.htm>


More information about the Pythonmac-SIG mailing list