macOS: Correct invalid Objective C code