[ctypes-users] Using ctypes to access OS X frameworks
Brought to you by:
theller
From: Thomas H. <th...@py...> - 2004-10-15 17:20:21
|
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 |