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 8029357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:24:47+00:00 2026-06-05T00:24:47+00:00

I was a bit surprised at first that UIView ‘s drawing is helped by

  • 0

I was a bit surprised at first that UIView‘s drawing is helped by CALayer, but CALayer‘s delegate is actually UIView. It seems that the relationship is reversed.

But is it true that, delegate has no “master commander” or “ownership” relationships… it can go any direction: such as, Class A can have a delegate which is Class B, and at the same time, Class B can also have a delegate that is Class A.

Even more, there can be multiple delegates, which means, an object needs help from several other objects.

It is kind of similar to the physical world, that a CTO can delegate the “Technical ability test to interview someone” to David, and now David is a delegate for providing a score of 1 to 10. But David can delegate a requirement met or not back to the CTO (a boolean) that “I can only interview the candidate for Javascript, I will agree the new candidate can be hired and agree to work with him if you find out he is good with scalability issues because our group need such a person” — and David is delegating this back to the CTO.

So in Objective-C (and probably any language too), there can be multiple delegates, and they can go any direction, and the main idea is just for some “help” that the original object doesn’t know how to handle. Is that true?

  • 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-06-05T00:24:50+00:00Added an answer on June 5, 2026 at 12:24 am

    Delegates in iOS are not really like in real life. The delegates don’t actively tell objects how to work, but rather reactively instruct objects as to how they should operate, and receive updates about the status of objects.

    The delegate is in place to monitor the status of the objects it is delegating, and to provide instructions (when necessary) on how the object should perform its tasks. Your right in saying that there is no specific ownership, like class A can be a delegate for class B while class B is delegating class A. This is perfectly fine.

    There are four main types of delegate methods that both provide the delegate with information about the status of the object, and request instructions from the delegate. PeyloW describes them very well in his answer here.

    All of this is a roundabout way of saying that yes, you are correct.

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

Sidebar

Related Questions

I have googled for it but I am a bit surprised that I couldn't
I'm a bit surprised by System.Collections.Generic.SortedList, in that It requires me to use <key,
This is the first time I notice this and it's surprised me a bit.
Google results on this one are a bit thin, but suggest that it is
This surprised me a little bit, but I was playing around with some code
I am a bit surprised that while learning WPF/XAML/Silverlight almost all of the XAML/C#
I was a bit surprised a few minutes ago when I tried to overload
I'm a bit surprised to find the results of the following code, where I
I'm a bit surprised by Python's extensive use of 'magic methods'. For example, in
I was a bit surprised when the following code wouldn't compile: -- Code 1

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.