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

  • Home
  • SEARCH
  • 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 6628383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:07:29+00:00 2026-05-25T22:07:29+00:00

On Callback On Iphone File A: @protocol servicedelegate -(void)taskCompleted:(NSDcitionary*) dict; @end -(void) performtask callback=@taskCompleted:;

  • 0

On Callback

On Iphone

File A:

@protocol servicedelegate
-(void)taskCompleted:(NSDcitionary*) dict;
@end

-(void) performtask
callback=@”taskCompleted:”;

[(id)delegate performSelector:NSSelectorFromString(callback) withObject:data];

File B:

-(void) taskcompleted:(NSDictionary*)dict
{

//don something when File A fisnihed the taskcompleted and have the data
// this callback on File B will be awaken from File A’s delegate function
}

The question How does Android implement the above, File A waiting to getting the data, and nobody knows how long, but once finished, File B would awaken by the delegate callback function of taskcompleted.

  • 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-25T22:07:30+00:00Added an answer on May 25, 2026 at 10:07 pm

    There are a couple different ways:

    • Handlers
    • AsyncTask

    I’m a fan of AsyncTask myself, but they require more boilerplate. Handlers can often be simpler.

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

Sidebar

Related Questions

hi i am downloading file from server using ASIHTTPRequest in my iphone application but
using iphone sdk 4.0. The callback for an http request gives data as an
Hi: In an iPhone application I use a library(C++) which asynchronously makes a callback
Is there any way to get iPhone coordinates without relying on javascript callback events?
I have just noticed that my timer callback function stops firing when iPhone screen
I've added a callback to an IHTMLElement instance but when the IDispatch::Invoke is called
If a callback handler returns false, does it cause only the handlers for that
How can callback functions help me in my development? Especially with PHP. I am
d = Deferred() d.callback(Deferred()) # Assertion error saying that a Deferred shouldn't be passed
$.get(CallBack.aspx, { nm: StateTx, nm2: StateTx2 }, function(data) { $.each(data, function() { $('[id$=DropDown1]').append(<option value=

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.