title: Accessing Local file using NSURL
body: <p>I am trying to access an XML file store in the resources directory. I am using NSURL to access this file using NSURLConnection( this file is going to be swapped out for a remote service in the future). </p>
  
  <pre><code>NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL 
  URLWithString:@"file:///XMLTest.xml"] 
  cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
  
  NSURLConnection *connection=[[NSURLConnection alloc] initWithRequest:request delegate:self];
  if (connection) {
      // Create the NSMutableData to hold the received data.
      // receivedData is an instance variable declared elsewhere.
      response = [[NSMutableData data] retain];
  } else {
      NSLog(@"Could not create connection");
  }
  </code></pre>
  
  <p>The class that starts the connection implements the NSURLConnection methods:</p>
  
  <pre><code>connection:willCacheResponse: 
  connection:didReceiveData: 
  connectionDidFinishLoading: 
  connectionDidFinishLoading:
  </code></pre>
  
  <p>Once I launch this the simulator dies, no messages are printed to the console so I am at a loss for where to look. Any ideas, or am I just doing this completely wrong?</p>