I'm adding nullability specifiers to a class, and I have some pointer-to-pointer output parameters, like (NSString**)
, because the method returns multiple objects. How do I specify nullability for that?
For these particular cases, I want callers to not pass in NULL, but I don't care if they pass a pointer to a nil variable (or rather, that's expected).
At first I tried (nonnull NSString**)
, and after a couple of rounds of Xcode's suggested fixes, ended with (NSString* _Nonnull *)
, but there's still a warning on the second *, "Pointer is missing nullability type specifier", with no suggested fix.