Re: [Pyobjc-dev] NSCredential credentialWithIdentity:certificates:persistence:
Brought to you by:
ronaldoussoren
From: Eric F. <er...@ze...> - 2020-07-27 10:43:31
|
Hi, Thank you for your answer. I have tried to change the metadata using the following code block: import objc objc.registerMetaDataForSelector( b"NSURLCredential", b"credentialWithIdentity:certificates:persistence_", {'arguments': { 2: {'null_accepted': False, 'type': b'@'}, 3: {'_template': True, 'type': b'@'}, 4: {'_template': True, 'type': b'Q'}, 'classmethod': True, 'hidden': False, 'retval': {'_template': True, 'type': b'@'}} } ) but I didn't manage to make it work. The metadata for the method do not change. I do not really know when to call registerMetaDataForSelector, if I have to import the NSURLCredential class after calling it or before. Again, thank you for your time. -- Éric > On 25. Jul 2020, at 17:21, Ronald Oussoren <ron...@me...> wrote: > > What should work as a workaround: use registerMetaDataFor to change the type for argument 2 to “@“. > |