I am having trouble getting my head around the mighty NSTableView.
Essentially, when reloading the data from the Array, I always end up with the first row containing blank rows.
Below describes how I have stored data into a Dictionary during initialisation:
This is obviously where the blank row originates from.
I have a method that adds new data to the Dictionary by doing:
So, when I reloadData to the table, I get the first row blank followed by showing the needed data in the rows below.
What am I doing wrong?
Pete
Essentially, when reloading the data from the Array, I always end up with the first row containing blank rows.
Below describes how I have stored data into a Dictionary during initialisation:
Code:
- (void)applicationDidFinishLaunching.... {
record = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"",kCall, @"",kDate, @"",kTime, @"",kBand,nil];
array = [NSMutableArray arrayWithObject:record];
}
I have a method that adds new data to the Dictionary by doing:
Code:
[array addObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:call,kCall, date_,kDate, time_,kTime, band_,kBand, nil]];
So, when I reloadData to the table, I get the first row blank followed by showing the needed data in the rows below.
What am I doing wrong?
Pete