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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:03:50+00:00 2026-05-13T13:03:50+00:00

in my app I am trying to run some code that currently exists in

  • 0

in my app I am trying to run some code that currently exists in my applicationWillTerminate in appDelegate.
I have c/p’d the same code into the method that is currently running (verified by NSLog), but the code just doesnt seem to execute the same way.

The following code is from my applicationWillTerminate, which saves data, ready for loading next time.

[myArray makeObjectsPerformSelector:@selector(saveAllDataLeads)];

when I insert this into my DetailViewController.m (in a method that is currently active), I insert the following.

[appDelegate.myArray makeObjectsPerformSelector:@selector(saveAllDataLeads)];

The problem is that it just doesn’t do the stuff in saveAllDataLeads, can someone see what is wrong? or is more information required.

Regards

in DetailViewController.h i have declared

MyAppDelegate *appDelegate;

  • 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-13T13:03:51+00:00Added an answer on May 13, 2026 at 1:03 pm

    The objects that you have added to myArray must have a selector with no parameters, named saveAllDataLeads, that is:

    @interface MyObject : NSObject {  
    }  
    - (void)saveAllDataLeads;  
    @end  
    
    @implementation MyObject
    - (void)saveAllDataLeads {
      // do something
    }
    @end
    

    Then, presumably somewhere you are adding instances of MyObject to myArray:

    MyObject* instance = [MyObject new];
    [appDelegate.myArray addObject:instance];
    [instance release];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have mutex in my app that allows only 1 instance to run.
I am trying to run jquery through a rails app. I have the edit
I am cleaning up some code in a C# app that I wrote and
Currently I am trying to parse an xml string that I already have (no
I have been writing some code that creates a generic blog. Its features are
I'm trying to implement some integration between a legacy app running in the Reflection
I'm trying to use AppleScript to modify some app settings. The code looks like
I encountered a problem when running some old code that was handed down to
I have Java code that works on my desk top...its a simple app that
I am trying to make my Android application run some code when run from

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.