I thought at first that ChatGPT was telling me about an API in ObjC I was not familiar with before. Turns out: It's a lie and and completely made up by ChatGPT. For those not familiar with ObjC at all, only the first approach is correct.