Is it like if I “pass a message” between two objects and if they happened to be have been instantiated in different threads then the invoked method would still run in its object’s thread?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Calling a method is resolved at compile time and the method can be expected to be present at run time. Message passing is resolved at run time and the receiver object does not need to understand how to handle the message.
The term “message passing” in Objective-C does not have anything to do with threading.
I found a good article about this topic here: http://iskren.info/reading/info/ObjC/reading/dynamite.html