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 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, another NULL vs empty string question. I agree with the idea that NULL
I have been going back through my app trying to handle all the memory
I have an a aspx page, but all content is generated by hands(yes I
Yes, there is a similar question here . However, that question doesn't seem to
I'm a newbie in iPhone Programming. I'm trying to send a message from one
Hi all i am trying to save image in the bundle which i have
Thanks for all your help, as usual, i am looking for some more information...
Yes, I know. The existence of a running copy of SQL Server 6.5 in
...Yes I've seen: Best Resources for Learning JavaFX? but it doesn't really answer the
Yes, There's More Than One Way To Do It but there must be a

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.