This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import objc, CoreFoundation | |
from ctypes import c_void_p, pointer, cast | |
# The only reason I'm doing this the XML way is because I don't have a better way (yet) | |
# for correcting a function signature -after- it's already been imported. | |
# The problem is the last argument is a pointer to a CFArrayRef, which works out to a | |
# pointer to a pointer to a CFArray. pyobjc doesn't handle that much abstraction, so I created | |
# a custom opaque type 'CFArrayRefRef' and manually handle the conversion to/from pointer. |