title: Saving array of strings to plist
body: <pre><code>1.   if ( [openDlg runModal] == NSOKButton )
  2.    {
  3.        // Get an array containing the full filenames of all
  4.        // files and directories selected.
  5.        NSArray* urls = [openDlg URLs];
  
  6.        // Loop through all the files and process them.
  7.        for(int i = 0; i &lt; [urls count]; i++ )
  8.        {
  
                      // this fails to update the .plist file
  9.          //[_sourceFiles addObject: [urls objectAtIndex:i] ];
  
                      // plist file updates successfully
  10.         [_sourceFiles addObject:@"file://localhost/Users/Bill/Documents/" ];
  
  11.         NSLog(@"%@", [urls objectAtIndex:i]);
  
  12.        }
  
  13.         [_myTable reloadData];
  14.     }
  </code></pre>
  
  <p>_sourceFiles is an an mutable array of strings that gets saved to a .plist file. The curious thing is that WriteToFile to a .plist file fails with 9. but succeeds with 10. even though both 9. and 10. return strings. </p>
  
  <p>This has puzzled me for a few days now: Using the strings returned by open File Dialog always fails to update the .plist file and, yet, if I supply string literals instead, updating the .plist file always succeeds.    </p>
  
  <p>Also, is there any way to get the WriteToFile for an NSMutablearray to display the nature of the error?  </p>
  
  <p>Hoping that someone can help and plenty of thanks in advance.</p>