title: Parsing NSData with file content
body: <p>I am retriving some file from the web containing data in a specific format which I would like to parse. However I know only how to get the file from the web:</p>
  
  <pre><code>dispatch_async(server_queue, ^{
      NSData* data = [NSData dataWithContentsOfURL:
                      kURL];
      [self performSelectorOnMainThread:@selector(parseData:)
                             withObject:data waitUntilDone:YES];
  });
  </code></pre>
  
  <p>In the parse method I would like to tokenize each line of the file but I am not sure how to extract the lines from the NSData object.</p>
  
  <pre><code>-(void)parseData:(NSData *)responseData {
      //tokenize each line of responseData
  }
  </code></pre>
  
  <p>Any suggestion?</p>