[Pyobjc-dev] NSCredential credentialWithIdentity:certificates:persistence:
Brought to you by:
ronaldoussoren
From: Eric F. <er...@ze...> - 2020-07-25 11:24:46
|
Hi, I am trying to use the following class method: NSCredential credentialWithIdentity:certificates:persistence: https://developer.apple.com/documentation/foundation/nsurlcredential/1428192-credentialwithidentity (Python3.6 in a virtualenv on macos 10.15 with PyObjc v6.2.2) Metadata: {'arguments': ({'_template': True, 'type': b'@'}, {'_template': True, 'type': b':'}, {'null_accepted': True, 'type': b'^{__SecIdentity=}'}, {'_template': True, 'type': b'@'}, {'_template': True, 'type': b'Q'}), 'classmethod': True, 'hidden': False, 'retval': {'_template': True, 'type': b'@'}} I get a SecIdentity object from a previous SecItemCopyMatching call. When I pass it to this method, i get the following error: depythonifying 'pointer', got 'SecIdentityRef' How could I fix this issue? Do I need to pass the SecIdentity as a different kind of argument? Is it possible to change the metadata with registerMetaDataForSelector ? Thanks, -- Éric |