A: 
  1. Get rid of the [connection release] in the 2nd line. The connection object comes in autoreleased, so this could cause crashes.
  2. It looks like you've got a property named tableArray? If so, you're redeclaring the name in this method (you should have gotten a compiler warning).

On second thought, here's how the 2nd 1/2 of the method should look:

NSMutableArray *tmpArray = [[NSMutableArray alloc] initWithObjects:nil];

for (NSString *element in dataArray) {
    [tmpArray addObject:[element objectForKey:@"name"]];
}

self.tableArray = tmpArray;
[tmpArray release];
kubi
kubi.I tried this way and I am still getting null in UITableVIewCell method? But I get the right values in connectionDidFinishLoading. It's still getting stuck in there...Thanks for your help on this.
Eric Goodenough
I did notice this:2010-02-06 13:38:07.907 Courses[34368:207] (null)2010-02-06 13:38:07.908 Courses[34368:207] (null)2010-02-06 13:38:07.910 Courses[34368:207] (null)2010-02-06 13:38:07.952 Courses[34368:207] ( "My Golf Course", "Glen Annie", "Alisal Ranch", "Santa Barbara Golf Club", "Rancho San Marcos")The UITableViewCell seems to be loading before the connectionDidFinishLoading. So the values don't exist yet...
Eric Goodenough
A: 

In connectionDidFinishLoading: you use declare tableArray as a local variable. Therefore it will never be assigned to self.tableArray.

St3fan
+1  A: 

Solution:
After taking kubi and st3fan's advice with self.tableArray I found I had to reload the tableView with [self.tableView reloadData];

Eric Goodenough
Glad everything worked out for you! ps. you should mark one of our answers correct.
kubi
A: 

I had the same problem and I resolved it reloading the table.

I inserted this line at the end of connectionDidFinishLoading function

[self.tableView reloadData];    

and it works.

Katie