I'm trying to query a NSError object returned from on an AVFoundation call by reference.
The ObjectiveC Definition is
- (instancetype)deviceInputWithDevice:(AVCaptureDevice *)device
I tried many combinations and can't figure it out:
err = c_void_p()
err1 = pointer(err)
deviceInput2=ObjCClass('AVCaptureDeviceInput').deviceInputWithDevice_error_(self.inputDevice2, byref(err1) )
deviceInput2=ObjCClass('AVCaptureDeviceInput').deviceInputWithDevice_error(self._inputDevice2, err1 )
What I get is
<objc_util.LP_c_void_p object at 0x10762af48>
B) <objc_util.LP_c_void_p object at 0x10762af48>
What is the right way to do this and to get the NSError in the end?
All examples I found just seem to ignore the NSError by using None.