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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:12:51+00:00 2026-05-16T18:12:51+00:00

In Erica Sadun’s Download Helper, link here , I can put these methods into

  • 0

In Erica Sadun’s Download Helper, link here, I can put these methods into my classes:

- (void) didReceiveData: (NSData *) theData;
- (void) didReceiveFilename: (NSString *) aName;
- (void) dataDownloadFailed: (NSString *) reason;
- (void) dataDownloadAtPercent: (NSNumber *) aPercent;

these methods obviously refer back to the “DownloadHelper.h” and “DownloadherHelper.m”. I want to know if I am able to access properties on the xib view such as textfields, uitableviews, uilabels … etc in one of these methods. For example:

- (void) didReceiveFilename: (NSString *) aName {
    [label setText:@"hi"];
}

I have tried doing so, but the objects on the xib view won’t update. like the given example above. Is there any way to do this?

Thanks,

Kevin

  • 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-16T18:12:52+00:00Added an answer on May 16, 2026 at 6:12 pm

    It should be possible to access/update the properties of any outlets that you have linked from your xib into your controller. Have you verified via the debugger that the didReceiveFilename: message is being sent to your controller, and that label is non-nil when the setText: message is sent to it?

    Edit: I communicated with the person that posted this question offline. The problem was not related to the asynchronous downloads. His code was attempting to notify the controller of the view that contained the table view that a download had started, but the message was sent to the wrong controller instance. Fixing this corrected the problem.

    Changed from this:

       // code that switched to an existing DownloadViewController omitted...
       // the new download controller that is created here has no views seen by the user!
       DownloadViewController *download = [[DownloadViewController alloc] init];
       [download downloadstart];
    

    To this:

       // code that switched to an existing DownloadViewController omitted...
       // use the existing DownloadViewController instead of creating a new one
       DownloadViewController *download = (DownloadViewController *)[[appDelegate.rootController viewControllers] objectAtIndex:1];
       [download downloadstart];
    

    The downloadstart method is responsible for updating the table view in Kevin’s code.

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

Sidebar

Related Questions

I am using Erica Sadun's method of Asynchronous Downloads (link here for the project
I'm reading Erica Sadun's iPhone Developer's Cookbook , and ran into a question. She
I tried to compile Ercia Sadun's sample code here , but this error came
I have this snippet of code from a class created by Erica Sadun, that
I am using the example by Erica Sadun for how to resize and rotate
I've been trying out some of the view code from Erica Sadun's book The
Using Erica Sadun's scroll view example I created a project. I now have a
I'm learning iPhone programming from Erica Sadun's The iPhone Developer's Cookbook. When I run
Regarding Erica Sadun's iPhone Developer Cookbook, in Chapter 8, Exercise 14 Resize and Rotate
I am using the code of Erica Sadun to Synchronous Downloads files. On the

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.