Thanks, @Nikolay Kasyanov , I found that before and have tried using
CFBridgingRelease
however I found it crashes occasionally - I assume because it’s changing the ownership of the constant pointer? I assume it would be safer to create a copy of the string each time (or cache it) ?
n
Nikolay Kasyanov
06/08/2020, 9:33 AM
I’m just using a string literal instead of a constant, works like a charm