Re: Really strange NSTableView issue
Re: Really strange NSTableView issue
- Subject: Re: Really strange NSTableView issue
- From: Gideon King <email@hidden>
- Date: Fri, 15 Jul 2011 19:43:59 +1000
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 to strip the whole thing back to the absolute bare minimum code and see if the problem still exists. It does - even if my methods basically do nothing. And as per my follow up email, it's only when dragging from the table view in the color picker that triggers the problem.
On 15/07/2011, at 7:40 PM, Quincey Morris wrote:
> 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 don't. But I don't think this is the cause.
>
>> - (BOOL)tableView:(NSTableView*)tv acceptDrop:(id <NSDraggingInfo>)info row:(int)row dropOperation:(NSTableViewDropOperation)op {
>> [[info draggingPasteboard] clearContents];
>> return NO;
>> }
>
> This looks even more suspicious. I don't think the pasteboard is yours to clear the contents of, and I can't even think of a reason you'd want to do this here.
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden