• 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: NSTableView drop targeting error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView drop targeting error


  • Subject: Re: NSTableView drop targeting error
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 6 Apr 2004 17:16:45 +0200

Le 6 avr. 2004, ` 17:03, Jesse Grosjean a icrit :

A NSTableViewDropOn on row 0 on an empty NSTableView is strange.

What kind of value are you returning in:

(NSDragOperation)tableView:(NSTableView *)tableView validateDrop:(id <NSDraggingInfo>)info proposedRow:(int)row proposedDropOperation:(NSTableViewDropOperation)operation

I still see the error message even if I always return

- (NSDragOperation)tableView:(NSTableView *)tableView validateDrop:(id <NSDraggingInfo>)info proposedRow:(int)row proposedDropOperation:(NSTableViewDropOperation)operation {
return NSDragOperationNone;
}

from the validateDrop method. This seems to only effect NSTableView, I've got a NSOutlineView that's using the same model and is setup almost exactly the same, but it doesn't print this error.

Can you reduce the code to a sample code which displays this error?

I've never seen this behavior with NSTableView and I used quite a few of them.

I've posted sample code at:

http://www.hogbaysoftware.com/TableTest.zip

Try dragging a NSStringPboardType onto the very top of the table view. Also note that the tableView:validateDrop method also gets passed these impossible values (drop on zero row when it doesn't exist) so you may need to check for them in the validateDrop method.

I see it, it occurs when you try to drag on the headers and then on the content of the table view multiple times with the same

It's definitely a bug in the AppKit.

As for a workaround, the only solution would probably involves overloading the NSView D&D methods since the bug is not in the NSTableView data source code AFAIK.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Icon and Text in NSTableView (From: Martin Redington <email@hidden>)
 >Re: Icon and Text in NSTableView (From: "M. Uli Kusterer" <email@hidden>)
 >NSTableView drop targeting error (From: Jesse Grosjean <email@hidden>)
 >Re: NSTableView drop targeting error (From: Stéphane Sudre <email@hidden>)
 >Re: NSTableView drop targeting error (From: Jesse Grosjean <email@hidden>)
 >Re: NSTableView drop targeting error (From: Jesse Grosjean <email@hidden>)

  • Prev by Date: Re: Objective C memory allocation
  • Next by Date: Re: DVDPlayback.framework
  • Previous by thread: Re: NSTableView drop targeting error
  • Next by thread: Re: NSTableView drop targeting error
  • Index(es):
    • Date
    • Thread