iPhone XML parser wont add object to mutable array
<p>Greetings,</p>

<p>I have a problem with adding an object from parser to mutable array.
It was working fine until I moved MtableArray from AppDelegate to ViewController. This is where I call parser (MutableArray is inside this View also):</p>

<pre><code> NSURL *url = [[NSURL alloc] initWithString:@"http://example.com"];
 NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:url];

 parser = [[XMLParser alloc] init];

 [xmlParser setDelegate:parser];

 [xmlParser parse];
</code></pre>

<p>...and this is inside parser where objects should be added:</p>

<pre><code>if([elementName isEqualToString:@"Element"]) {

  [viewController.marray addObject:parsedObj];

  [parsedObj release];
  parsedObj = nil;
  }
</code></pre>

<p>marray is synthesized inside viewController. Parser is doing good job, I tried with NSLog, but marray.count is always (null). Please help!!!</p>
