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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:48:54+00:00 2026-05-14T03:48:54+00:00

All right all, So I’ve got a UITableView that is inited in applicationDidFinishLaunching like

  • 0

All right all,

So I’ve got a UITableView that is inited in applicationDidFinishLaunching like so:
[self showForumList];
Said method does this:

-(void)showForumList {
    ForumList *fl = [ForumList alloc];
    [fl initWithNibName:@"ForumList" bundle:[NSBundle mainBundle]];
    self.ForumList = fl;
    [window addSubview:[self.ForumList view]];
    [fl release];
}

where self.ForumList is previously defined in the interface as ForumList *ForumList;, etc.

Now, in ForumList (itself an extension of UITableViewController obviously), I’ve got didSelectRowAtIndexPath: — within it I have the following code:

   Forum *f = [Forum alloc];
    NSArray *forums = [f getForumList];

    NSDictionary *selectedForum = [forums objectAtIndex:[indexPath row]];

    NSString *Url = [selectedForum objectForKey:@"url"];
    NSString *Username = [selectedForum objectForKey:@"username"];
    NSString *Password = [selectedForum objectForKey:@"password"];

    NSLog(@"Identified press on forum %@ (%@/%@)", Url, Username, Password);

    [self.globalDelegate showForumListFromForumUsingUrl:Url username:Username password:Password];
    [self.globalDelegate closeForumList];
    NSLog(@"ForumListFromForum init");

Both of the NSLog calls in this function are executed and perform as they should. Now, here is where the issue starts.

self.globalDelegate is defined as AppDelegate *globalDelegate; in the Interface specification in my header file. However, [self.globalDelegate showForumListFromForumUsingUrl:username:password] and and [self.globalDelegate closeForumList] are never actually called. They look like so:

-(void)closeForumList {
    NSLog(@"Hiding forum list");
    [[self.ForumList view] removeFromSuperview];
}

-(void)showForumListFromForumUsingUrl:(NSString *)Url username:(NSString *)Username password:(NSString *)Password {
    NSLog(@"Showing forum list from forum");
    ForumListFromForum *fl = [ForumListFromForum alloc];

    [fl initWithNibName:@"ForumListFromForum" bundle:[NSBundle mainBundle]];
    [fl initFromForumWithUrl:Url username:Username password:Password];

    self.ForumListFromForum = fl;
    [window addSubview:[self.ForumListFromForum view]];
    [fl release];
}

The app responds to my press, yet neither of these NSLog calls are made, presumably because the calls to the method in appDelegate do not work.

Any idea where I’ve gone wrong?

  • 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-14T03:48:54+00:00Added an answer on May 14, 2026 at 3:48 am

    I don’t see a line, where self.globalDelegate is allocated & initialized. Maybe, it’s the reason.

    Moreover, check (in debugger) that in these lines:

    [self.globalDelegate showForumListFromForumUsingUrl:Url username:Username password:Password];
    [self.globalDelegate closeForumList];
    

    self.globalDelegate is not nil. As you should remember – messages to nil are perceived as correct, but nothing happens.

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

Sidebar

Related Questions

All right, this must be an absolutely easy question, and I apologize for that.
I want add my custom sidebar next right column all page. Please check this
I use AutoBean to code/decode data to JSON and that was all right in
All right, this one is going to sound very weird and I don't know
All right real quick question guys. I know that C# Forms have the OnPaint()
Like all right-thinking people, I hate to click on a link and discover too
All right, so I've got an applet I'm trying to embed into an HTML
All right this is kind of embarrassing, but I am not sure what is
With PostgreSQL and MySQL it is all right to do something like SELECT *
I'm quite new to nhibernate, I was doing all right until I face this

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.