HI Mike,

we have implemented the following delegate methods in our class for the Table 
view and the respective counter parts for NSBrowser have also been added. I 
tested by placing break points on these two methods but still was not able to 
see them getting hit when the drag and drop was performed.

- (NSDragOperation)tableView:(NSTableView*)aTableView validateDrop:(id 
<NSDraggingInfo>)info proposedRow:(int)row 
proposedDropOperation:(NSTableViewDropOperation)op
{

}

- (BOOL)tableView:(NSTableView*)aTableView acceptDrop:(id <NSDraggingInfo>)info 
row:(int)dropRow dropOperation:(NSTableViewDropOperation)op
{
        
}

PS: The dragTypes for both the browser as well as NSTableView have been set to 
NSStringPasteboardType

Please let me know if we are missing something. As of now it would be great if 
the control would just flow into these methods.


Thanks in Advance
Sandeep.

On Jun 23, 2011, at 4:03 AM, Mike Abdullah wrote:

> Look at the datasource API for each view. They both have methods for writing 
> and reading to/from the pasteboard.
> 
> On 23 Jun 2011, at 09:38, Sandeep Mohan Bhandarkar wrote:
> 
>> Hi All,
>> 
>> within my application i have a screen where exists and NSBrowser as well as 
>> an NSTableViews. can someone please let me know we can implement dragging 
>> items from the browser to the table view.
>> any source reference on this would be very helpful.
>> 
>> Thanks in Advance,
>> Sandeep.
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net
>> 
>> This email sent to cocoa...@mikeabdullah.net
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to