Really strange NSTableView issue

2011-07-15 Thread Gideon King
I have a table view which uses an array controller for the contents, and as a data source and delegate so I can do drag and drop etc. It displays my data (Colors) just fine, but in one particular scenario something somewhere is over-releasing an NSIndexSet. I have stripped it right back to the

Re: Really strange NSTableView issue

2011-07-15 Thread Gideon King
OK, as usual, 10 minutes after sending the email to the list, something new turns up. The *only* time that this problem occurs is when the drag source is the table view in the Color Palettes section of the Color panel. Still no idea what's causing it, but at least the problem is narrowed down.

Re: Really strange NSTableView issue

2011-07-15 Thread Quincey Morris
On Jul 15, 2011, at 01:40, Gideon King wrote: - (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:(NSIndexSet *)rowIndices toPasteboard:(NSPasteboard *)pboard { return YES; } This looks suspicious, because it's asking you to write specific rows to the pasteboard, and you

Re: Really strange NSTableView issue

2011-07-15 Thread Gideon King
In my normal code I do write the date etc, and I only added the clear contents afterwards to try to track down the issue. In the process of testing, it became clear that it made absolutely no difference to the results whether I had anything happening in those methods or not - the process was