logo       

Using ctypes to access OS X frameworks: msg#00016

python.ctypes

Subject: Using ctypes to access OS X frameworks

I have been asked in private email if ctypes can be used to access OS X
frameworks. I googled around a bit and found these pages:

http://developer.apple.com/samplecode/CallMachOFramework/CallMachOFramework.html

http://developer.apple.com/samplecode/CallMachOFramework/listing2.html

Remember that I know nearly nothing about macs, but by reading these
pages I got the impression that the key functions here are
LoadFrameworkBundle() and CFBundleGetFunctionPointerForName(), which
seem to play roles similar to dl_open()/dl_sym() or
LoadLibrary()/GetProcAddress().

Apart from that, I really do not know if this is a niche covered by
PyObjC, or would ctypes have a place here?

The background, for me at least, is that ctypes still lacks critical
mass on non-windows systems. In the meantime I have started learning to
run and debug code on some x86 platforms (some linuxes, openbsd), but
not on the mac.

Thomas



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise