title: Using appDelegate to fill an array of other class
body: <p>I have an app that have database based on XML structure. XML is quite large, and what i want is, to parse it from very beginning, and then fill array that declared in other class. That is how i try to do this - when parsing ended, method -<code>(void)dataFromXMLdidFinishExtractingToArray:(NSMutableArray*)array</code>:  is called through protocol, then i want to fill an array. Please, take a look at my code, that declared in appDelegate:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      // Override point for customization after application launch.
      dataManager *dataMgr =[[dataManager alloc]initWithDelegate:self];
      [dataMgr loadInternalData];
      return YES;
  }
  
  -(void)dataFromXMLdidFinishExtractingToArray:(NSMutableArray*)array{
  
      ListViewController *listController = [[ListViewController alloc]init];
      listController.listOfPlaceDetails = array;
      NSLog(@"%@ NAMES", array);
      NSLog(@"delegate Called");
  
  }
  </code></pre>
  
  <p>Firstly, i do parsing with my dataManager class, and when it finish, trying to fill data in array. Parsing is just fine, i can see everything in console. But, when i load my listViewController class, array - self.listOfPlaceDetails is empty.  How can i pass values from appDelegate to other class in my app?</p>
  
  <p>Any advice would be appreciated, thanks!</p>