title: Saving Array to PList from downloaded content in table view on iPhone
body: <p>I copied these posts from a forum where I posted recently, but got no reply.</p>
  
  <p>I have the base for my code all setup, it is a drill down table with navigation controller which loads data into a nsmutabledictionary from a plist with some empty values, on purpose. On command the app then downloads information which is then set, setValue, in NSMutableArray. The issue is that this NSMutableArray is 3 levels down from the root of the plist. I am looking for a way to replace the array in the plist which is loaded and saved in the appdelegate. How do I this? Help is much appreciated.</p>
  
  <p>So that probably didn't make much sense. In the AppDelegate it loads a plist file into an NSMutableDictionary. The plist is like this:</p>
  
  <p>Root<br>
  &gt;Title(String)<br>
  &gt;Rows(Array)<br>
  &gt;&gt;Item 1(Dictionary)<br>
  &gt;&gt;&gt;Title(String)<br>
  &gt;&gt;&gt;ID(String)<br>
  &gt;&gt;&gt;ItemList(Array)<br>
  &gt;&gt;&gt;&gt;Item 1(Dictionary)<br>
  &gt;&gt;&gt;&gt;&gt;Title(String)<br>
  &gt;&gt;&gt;&gt;&gt;ID(String)<br>
  &gt;&gt;&gt;&gt;&gt;Value(String)-----------Empty Value which is Downloaded<br>
  &gt;&gt;&gt;&gt;Item 2(Dictionary)<br>
  &gt;&gt;&gt;&gt;Item 3(Dictionary)<br>
  &gt;&gt;&gt;&gt;Item 4(Dictionary)<br>
  &gt;&gt;Item 2(Array)<br>
  &gt;&gt;Item 3(Array)<br>
  &gt;&gt;Item 4(Array)<br></p>
  
  <p>The Rows array is sent to the RootViewController. When one of these items is selected from the TableView and new instance is created with the table data source set to the ItemList of that selected item. When the user presses a button it downloads the values and using [setValue: forKey:@"Value"] the values are set in the array. Here is where it gets lost. I need to now set this ItemList array back into the main Root dictionary and then that Root dictionary sent back to the AppDelegate, so that on applicationWillTerminate [self.data writeToFile:] can be called and the downloaded information does not need to be downloaded the next time.</p>