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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:19:09+00:00 2026-06-04T10:19:09+00:00

I will start by apologising if this is a naive, simple or stupid question.

  • 0

I will start by apologising if this is a naive, simple or stupid question. I am relatively new to objective C and am trying to learn.

Basically I have a situation in which methodA, methodB or methodC are called. These methods then call methodX. Once the end of methodX is reached I need it to re-call the method that called it (methodA, methodB or methodC).

I have never come across this issue before and would like help developing a solution. In a more complex situation I may also have the following. methodA, methodB or methodC are called; they call methodX. methodX goes off and calls a bunch of other methods (that cannot be changed), at some later point methodY(in the same class as methodA, methodB, methodC and methodX) gets called, this in turn should call the method that started out calling methodX (be it methodA, methodB or methodC).

Please can someone point me in the right direction with this problem. If there are any tutorials or basic examples out there that could help I would really appreciate being directed to them. I have tried googling the topic described in my examples however I haven’t had much luck since I don’t know the technical terms for what I’m trying to achieve.

Thanks in advance.

NOTE: In my examples methodA, methodB, methodC, methodX and methodY are all in the same class.

  • 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-04T10:19:11+00:00Added an answer on June 4, 2026 at 10:19 am

    There are two typical ways of doing this.

    One way of doing it is to use a delegate. Define a protocol that has a completion method, declare that an object conforms to that protocol, pass that object through to the method, then, when you need to signal completion, call the completion method on that delegate object.

    The other way of doing it is to use blocks. Pass a block through to the method, execute it when you are done.

    It’s also common to see people pass through targets and selectors, or to use notifications. The first two methods are more suited to this type of situation though.

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

Sidebar

Related Questions

I have an application and every new created activity will start an async task
Ok, so I will start by saying that I am new to all this
I'm new in Obj C programming, so i will start from beginning I have
I will start with what I am trying to accomplish. I have a ListFragment,
This is my ListActivity after clicking on the list it will start a new
This is for a new project which will start on the desktop with the
I have BroadcastReceiver when new Message is received will start MessageActivity , but how
I will start by saying this is the first time I have done anything
I will start new PDA project on the windows mobile and compact framework 2.0
I have an asp.net page that calls a dll that will start a long

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.