title: NSKeyedArchiver write XML (or other human readable)?
body: <p>I have been trying to get the NSKeyedArchiver to write out my data in a human readable form (i.e. not as a binary file) I understand that I can use ...</p>
  
  <pre><code>setOutputFormat: NSPropertyListXMLFormat_v1_0
  </code></pre>
  
  <p>But ... I just can't seem to get the syntax right, can anyone point me in the right direction?</p>
  
  <pre><code>NSData *artistData;
  
  NSLog(@"(*) - Save All");
  artistData = [NSKeyedArchiver archivedDataWithRootObject:artistCollection ];
  [artistData writeToFile:@"/Users/fgx/Desktop/stuff" atomically:YES];
  </code></pre>
  
  <h1>EDIT</h1>
  
  <p>I added setOutputFormat (see below) but I get a warning at compile, what am I missing?</p>
  
  <pre><code>warning: NSData  may not respond to 'setOutputFormat:'
  </code></pre>
  
  <p>Here is the code I used.</p>
  
  <pre><code>NSLog(@"(*) - Save All");
  artistData = [NSKeyedArchiver archivedDataWithRootObject:artistCollection ];
  [artistData setOutputFormat: NSPropertyListXMLFormat_v1_0];
  [artistData writeToFile:@"/Users/fgx/Desktop/stuff" atomically:YES];
  </code></pre>
  
  <p>gary</p>