title: Concatenating NSArray contents with NSMutableString AppendString
body: <p>I'm trying to iterate through an NSArray and keep getting a compiler error right when i try concatenating the contents of my array at position i to my NSMutableString instance.. </p>
  
  <p>It just tells me that there's a "syntax error before ;" which doesn't tell me a whole lot.
  at this line:</p>
  
  <pre><code>  [output appendString:[widget.children objectAtIndex:i]; 
  </code></pre>
  
  <p>i know there must be something up with my syntax..</p>
  
  <p>my function is as follows</p>
  
  <pre><code>- (NSString *)readArray
  {
      NSMutableString *output = [[NSMutableString alloc] init];
      int i;
      int arraySize = widget.children.count;
      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
      for (i = 0; i &lt; arraySize; i++)
      {
          [output appendString:[widget.children objectAtIndex:i];  (throws error here)
      }
      [pool release];
      return output;
  
  }
  </code></pre>
  
  <p>thanks in advance</p>