Re: [Pyobjc-dev] NSCredential credentialWithIdentity:certificates:persistence:
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@me...> - 2020-07-27 13:53:54
|
There’s an underscore at the end of the selector in the code below, that should be a colon. Could you file an issue on GitHub about this? That helps me to not forget to work on a better fix, and will give you an update when I do so. Ronald — Twitter / micro.blog: @ronaldoussoren Blog: https://blog.ronaldoussoren.net/ > On 27 Jul 2020, at 11:49, Eric Falconnier <er...@ze...> wrote: > > 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 “@“. >> > |