title: Using NSScanner to separate string into NSArray by comma
body: <p>Does anyone know how i can use NSScanner to separate  a string by comma into an array EXCEPT when a comma is embedded within quotes?</p>
  
  <p>Before i had been using:</p>
  
  <pre><code>  NSArray *arrData = [strData componentsSeparatedByString:@","];
  </code></pre>
  
  <p>However i have quotes inside the string that have commas inside them, i want these not to be separated. I have never worked with NSScanner before and i am struggling to come to terms with the documentation. Has anyone done a similar thing before?</p>