No Data added to table


#1

Having checked all the connections and compared to the Solution file, I just can’t get he Add Employee button to bring in the first employee init data.
No issues shown and Remove is disabled. I must have missed a connection but can’t see it!


#2

The Array Controller should look like this:

Uploaded with ImageShack.us

Merry Xmas
Vertex


#3

Thanks Vertex - I did check all these boxes. All the same I still can’t get that connection. I did the whole thing again and it works fine, but I’m no wiser as to the original problem - still can’t see it!
All the best for 2012


#4

I too had the same problem till I carefully looked at the - (void)setEmployees:(NSMutableArray *)a method in RMDocument.m. When I typed it initially, it looked like this:

[code]- (void)setEmployees:(NSMutableArray *)a
{
if (a == employees) {
return;

employees = a;
}

}[/code]

When I removed those parentheses enclosing return and employees = a as shown

[code]- (void)setEmployees:(NSMutableArray *)a
{
if (a == employees)
return;

employees = a;

}
[/code]
the app ran correctly. So it all boils down to a little typo.