PyObjCPointer
Adam Duston <[email protected]> Thu, 14 Aug 2014 19:14:07 -0400
| Newsgroups | gmane.comp.python.pyobjc.devel |
|---|---|
| Message-ID | <CAAkS109G5-v+3sH2dauUQaJ81bY4Htem8=r3Ay1ThuFiziBdFg@mail.gmail.com> |
Using pyobjc 2.5.1:
>>> import WebKit
>>> webview = WebKit.WebView.alloc().init()
>>> ctx = webview.mainFrame().globalContext()
2014-08-14 19:08:09.820 Python[16771:d07] PyObjCPointer created: at
0x105edf8d8 of type {OpaqueJSContext=}
>>> ctx.pointerAsInteger
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'PyObjCPointer' object has no attribute 'pointerAsInteger
I need to pass the pointer as a ctypes.c_void_p to a ctypes-wrapped
function, so getting the integral value of the underlying object
address would be great. I just can't seem to do that. Any way around
this?
Thanks,
Adam
--
Adam Duston
------------------------------------------------------------------------------