Re: NSTableView & Drag&Drop: What dataSource, What Delegate
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.