phldavies
06/08/2020, 8:46 AMCFStringRef
(like the kCFBundleNameKey
constant) as a Kotlin String
?Nikolay Kasyanov
06/08/2020, 9:18 AMphldavies
06/08/2020, 9:33 AMCFBridgingRelease
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) ?Nikolay Kasyanov
06/08/2020, 9:33 AMCFBridgingRetain
call to balance for the releasephldavies
06/08/2020, 9:35 AMNikolay Kasyanov
06/08/2020, 9:43 AM