Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 954643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:14:56+00:00 2026-05-16T00:14:56+00:00

What do we mean by an Object sending messages and how do protocols help

  • 0

What do we mean by an Object “sending messages” and how do protocols help an object to advertise the messages it supports? Does anyone have an example?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T00:14:56+00:00Added an answer on May 16, 2026 at 12:14 am

    It’s helpful to think of objects as not merely inanimate objects, but as actors—participants that have knowledge (state), have relationships (to other objects), make decisions, and perform actions (with, to, and upon other objects).

    Within this concept, instead of saying “x calls the foo method on y”, which is a very programming-y thing to say, we talk of the objects as talking to each other. We might say “x sends a foo message to y”, or, more specifically, “the text field x tells y that its textFieldDidChange:” or “x asks y what its framistanCalibrationLevel is” or any similar statement that might just as easily be about people as about imaginary objects.

    (The reason for the “message” terminology is not entirely conceptual: It’s brought over from Smalltalk, one of Objective-C’s parent languages. That’s the historical reason.)

    Protocols are sort of job descriptions. Just as a person may wear the title of Janitor, or Engineer, or Director, or Receptionist, objects that fulfilled those functions might conform to protocols by those names, declaring that those objects respond to messages telling them to do, or asking them about, certain aspects of their job.

    In actual Cocoa and Cocoa Touch usage, protocols typically describe a set of functions (again, not in the programming sense) that an object might provide to another object, such as a data source responding to messages by which the view can obtain the data, or a set of notifications that the object might respond to, such as an application delegate’s applicationDidFinishLaunching:, applicationWillTerminate:, etc.

    Sometimes a protocol can be even more general, like a broader version of a superclass—a real-world analogy being the many different kinds of Salesperson, and a Cocoa example being the many different classes of UI object that respond to validation messages. In some frameworks, you might make an abstract class for this, but protocols let you do the same thing (declare that a bunch of similar but different objects have some properties/abilities in common) without having to write dummy implementations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to ask what does it mean AttributeError: 'unicode' object has no
I mean, if I have an object and I apply 3 transforms to it,
I still cannot understand what does it mean to return an object in a
I want to have a generic object that implements an interface. I mean if
I mean object as in {} [object Object] . How does it do $(selector)
What does a Flat Object mean in the Pole Position Client Server Model benchmarks
What does it mean: Object's observable state? I was reading yesterday in Exceptional C++
What does copying an object mean? What are the copy constructor and the copy
Possible Duplicate: What do parentheses surrounding a JavaScript object/function/class declaration mean? Why following code
In LINQ to Object context ,can i update an object in memory. I mean

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.