👩💻 Join our community of thousands of amazing developers!
What does sending a message to nil do in Objective-C? What value does it return? You probably know that if the method is declared to return an object, you get back nil, but what if the method is declared to return a char? An int? A long long? A float? A struct? And how does it all work? Let's find out! objc_msgSend Here's what I do know. When you send a message to an object, such as [someObject doSomething], the compiler compiles that into a funct...