call Mac gcc -framework from CTypes how

p.lavarre at ieee.org p.lavarre at ieee.org
Wed Oct 25 14:51:14 EDT 2006


> can I somehow call the IONotificationPortCreate in the
> Framework that Apple built instead,

$ cd /System/Library/Frameworks/
$ cd IOKit.framework/Versions/Current/
$ file IOKit
... Mach-O dynamically linked shared library ...
$ nm -m IOKit | grep IONotificationPortCreate
... (__TEXT,__text) external _IONotificationPortCreate
$

Looks like it will work.  Not named .dylib or .so, but correct `file`
type and relevant `nm -m` symbols.

Thanks all for help offline, especially Nlzero.com,




More information about the Python-list mailing list