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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:24:20+00:00 2026-05-22T01:24:20+00:00

Yes all, another newbie question! I’m doing some maintenance work on an app I

  • 0

Yes all, another newbie question!

I’m doing some maintenance work on an app I inherited and I’m trying to find the code behind this method. In my task.h file I have a optional method, doTask, declared in a protocol, TaskDelegate. In my task.m file I located the method definition for doTask, but it refers back to it’s method name so I assumed I’d find another “more complete” method definition in another object. WRONG! I’m obviously missing something very basic here. I haven’t been able to find any other references in my code to doTask.

Here’s the initial declaration in my header file, task.h

@protocol TaskDelegate<NSObject>
@optional
- (void) doTask;

Here’s the method definition in my implementation file, task.m

- (void) doTask
{
    if ((self.delegate != nil) && ([self.delegate respondsToSelector:@selector(doTask)]))
    {
        [self.delegate doTask];
    }        
}

I assume my method definition is first determining if I have a object delegate already in existence and then seeing if it has a doTask method defined within it; if it does, then it’s telling it to execute the doTask method on that delegate. Am I correct?

Well, if so, my question becomes where is the code behind doTask which actually does something? I’ve really got to be missing something basic here. All help is appreciated! Thanks in advance for your assistance…

  • 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-22T01:24:20+00:00Added an answer on May 22, 2026 at 1:24 am

    As middaparka said, your assumption is spot-on. As for finding the function code for the doTask method, do a Edit -> Find -> Find in Project or command + shift + F and enter ‘doTask’ (or whatever the function name really is) into the search bar and set it to ‘In Project’ and it will pull up all instances where the function text shows up, including the function definition.

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

Sidebar

Related Questions

Yes, this is another Pivot question... I've read through nearly all the previous questions
Yes another question that is a little Unique because I cant find the same
Yes, I know this question has been asked before, but I can't find an
yes it's another .net regex question :) (please excuse the long waffle leading up
Yes, another IE fallback question. ;-) I had a look at the others here
Yes, this is probably yet another greatest-n-per-group question... But I've tried at least a
I would like to create function objects (yes, all functions are objects) with some
Yes, another NULL vs empty string question. I agree with the idea that NULL
I'm trying to find all the tables below my current node without also including
The Problem: With <meta name=apple-mobile-web-app-capable content=yes /> set, all of my jsonp requests are

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.