mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
An Objective-C method call will not be ignored when the object doesn't define the method. It will crash with a runtime exception. The author may have been thinking of the way an Objective-C method call will be ignored when the object is nil. But that's not the case when the object is there and lacks the method. In that case, the runtime will call -doesNotRecognizeSelector:. The default behavior in the root class NSObject is to raise an exception (not the try/catch kind; a similar case is array bounds checks) and deliberately crash. https://developer.apple.com/documentation/objectivec/nsobject/1418637-doesnotrecognizeselector?language=objc