How do warnings on undefined selectors work in Objective C?
问题 Is there any way to make the compiler raise a warning when calling a selector that is not defined ? For example, I have this call somewhere : methodcall time1:[[self.H1time copy] stringValue] stringValue method does not exist anymore in the H1time class and the compiler did not raise anything. copyWithZone is declared as - (NSHour*)copyWithZone:(NSZone *)zone; The compiler raises a warning inside NSHour if I call [self stringValue] . but not in methodcall time1:[[self.H1time copy] stringValue