On 09/03/2012, at 4:42 PM, Erik Stainsby wrote:
- (NSInteger) numberOfRowsInTableView:(NSTableView *)tableView {
return [tableData count] || 0;
}
What is the intention here? You are doing a boolean OR with the value zero,
which will promote (in fact demote) the return type to a BOOL.
A poorly thought out attempt to return the count or zero (I was writing a lot
of perl the day I coded this).
I recall reading that there is a race condition when *view*-based tables are
loaded from nib. This does not obtain in my current case: this is a cell based
table.
I removed the
I have a tableView which will accept one new row and updates to that row
succeed. Subsequent application of the same process does add new rowData
dictionary objects to the tableData model (NSMutableArray) but the tableView
will not display these additions.
A button on the UI is wired up to -
This doesn't make sense - it will either return 1 or 0. Hence only 1 row
appears.
Just return [tableData count].
(Sent from my iPhone.)
--
Conrad Shultz
On Mar 8, 2012, at 21:42, Erik Stainsby erik.stain...@roaringsky.ca wrote:
- (NSInteger) numberOfRowsInTableView:(NSTableView