• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Really strange NSTableView issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Really strange NSTableView issue (From: Gideon King <email@hidden>)
 >Re: Really strange NSTableView issue (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Really strange NSTableView issue
  • Next by Date: Re: model key path and properties
  • Previous by thread: Re: Really strange NSTableView issue
  • Next by thread: Hooking into responder chain, and NSTabViews - or dont?
  • Index(es):
    • Date
    • Thread