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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:05:28+00:00 2026-05-31T15:05:28+00:00

What I have going on here is a page that shows a list of

  • 0

What I have going on here is a page that shows a list of search results. When you click on the search button it opens a modal window where you can change your search criteria. When you click done it calls the updateSearch method on the modal window, which in turn should call the updateSearch on the parent window. The error I get is

Receiver type 'ehrxCMView' for instance message does not declare a method with selector 'updateSearch'

Here is the method on the parent viewcontroller

- (void)updateSearch
{

}

Here is my method on the modal window

- (IBAction)updateSearch:(id)sender 
{
    ehrxCMView *parent = (ehrxCMView*)self.parentViewController;
    parent.selectedOptions = self.selectedOptions;
    [parent updateSearch];
    [self dismissModalViewControllerAnimated:YES];
}

My one thought here is the modal window is inside a navigation controller, so I’m thinking maybe I need to go through that, then to the parent controller?

  • 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-31T15:05:30+00:00Added an answer on May 31, 2026 at 3:05 pm

    Anytime i see self.parentViewController …. it’s a code smell.

    Instead of linking view controllers like this, set one view controller as a delegate method on the popup controller. The popup can then call it’s delegate to tell it to updateSearch.

    This is a better, more maintainable approach you should get into the habit of doing.

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

Sidebar

Related Questions

I have a page going here that uses jQuery: http://treethink.com/services What I am trying
I can't figure out what is going on here. I have some nested lists
so here's what's going on. I have a table that is created in code-behind
When I redirect in a post going back to the page that shows the
I have created a search bar on GAE similar to facebook that shows you
I have a page that the user can modify. All modifications are performed using
I have an issue going on here. I am using PHP to get values
I have something weird going on here. I just finished a site for a
So I have a simple setup going here where I load up a file
Something really odd going on here, and I have gone round in circles trying

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.