Chapter 6. Sending Messages
Sending messages (calling methods) is fundamental to programming. You already know the basics of Objective-C messages. This chapter delves into the mechanics of how messages are sent, describes three different techniques for invoking methods programmatically, and explains how to write methods that accept a variable number of arguments. It isn't absolutely necessary to understand these topics in detail, but expanding your knowledge makes technologies like notifications, actions, remote invocation, and Key-Value Observing a little more comprehensible.
As briefly explained in Chapter 3, methods in Objective-C are not called in the Java sense. Messages are sent to objects via a dynamic dispatching function. Sending a message ...
Get Learn Objective-C for Java Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.