• 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 & Drag&Drop: What dataSource, What Delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView & Drag&Drop: What dataSource, What Delegate


  • Subject: Re: NSTableView & Drag&Drop: What dataSource, What Delegate
  • From: Ryan Bates <email@hidden>
  • Date: Fri, 13 Feb 2004 15:23:56 -0800

The table view sends the data source the message. From the documentation:

"When a validated drag operation is dropped onto the table view, the table view sends its *data source* a tableView:acceptDrop:row:dropOperation: message. The data source should incorporate the data from the dragging pasteboard (obtained from the acceptDrop parameter) at this time."
<http://developer.apple.com/documentation/Cocoa/Conceptual/TableView/ Tasks/UsingDragAndDrop.html>

Ryan

On Feb 13, 2004, at 3:06 PM, Roberto Sobachi wrote:

In some e-mail send by users about NSTableView & Drag&Drop implement,
is not so clear which functions must be inserted into dataSource class
and which functions in delegate class.


For example, the below function, seems it must be inserted into
delegate class, but in my code it works only in dataSource class of my
NSTableView.

Which in delegate and which in dataSource class?

- (BOOL)tableView:(NSTableView*)tv acceptDrop:(id <NSDraggingInfo>)info
row:(int)row dropOperation:(NSTableViewDropOperation)op
{
return YES;
}








Roberto Sobachi
_______________________________________________
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.
_______________________________________________
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: 
 >NSTableView & Drag&Drop: What dataSource, What Delegate (From: Roberto Sobachi <email@hidden>)

  • Prev by Date: Re: NSTableView & Drag&Drop: What dataSource, What Delegate
  • Next by Date: Framework loading
  • Previous by thread: Re: NSTableView & Drag&Drop: What dataSource, What Delegate
  • Next by thread: Framework loading
  • Index(es):
    • Date
    • Thread