Hi guys
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;