[Pyobjc-dev] PyObjCPointer
Brought to you by:
ronaldoussoren
From: Adam D. <ad...@do...> - 2014-08-15 00:07:14
|
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 |