title: IPhone Core Data Persistence & Lifecycle Question
body: <p>Whenever I build &amp; run my program I notice that a new directory gets created in:
  /Users/Username/Library/Application Support/iPhone Simulator/User/Applications</p>
  
  <p>Therefore, there's no way for me to persist core data between application builds. The way I thought to get around this issue (from a testing point of view) was to just use the iphone simulator to exit the application by pressing the circular menu button and re-run my app. I.e., not build it but just rerun it via the simulator to see if the data is persisted in core data. </p>
  
  <p>Now I wanted to check if the data is persisting each time the application is run. The event that I'm using is:</p>
  
  <ul>
  <li>(void)applicationDidFinishLaunching:(UIApplication *)application</li>
  </ul>
  
  <p>But it only fires after I build &amp; run the application but doesn't get fired each time i restart the application - via iphone simulator (i.e., pressing menu button then rerunning my program). </p>
  
  <p>Is there another event I should be using?? If I had an event that gets fired every time the application loaded I think I could just check to see if core data has data in it, if it doesn't i just populate it with an xml file to initialize it, if it does have data I don't do anything. Sound right? If so, what is that event called?</p>