• 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: Dragging from an NSBrowser to an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dragging from an NSBrowser to an NSTableView


  • Subject: Re: Dragging from an NSBrowser to an NSTableView
  • From: Sandeep Mohan Bhandarkar <email@hidden>
  • Date: Thu, 23 Jun 2011 15:53:58 -0700

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 (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
>

_______________________________________________

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: 
 >Dragging from an NSBrowser to an NSTableView (From: Sandeep Mohan Bhandarkar <email@hidden>)
 >Re: Dragging from an NSBrowser to an NSTableView (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: constrained window resizing
  • Next by Date: Re: constrained window resizing
  • Previous by thread: Re: Dragging from an NSBrowser to an NSTableView
  • Next by thread: Animating handwriting
  • Index(es):
    • Date
    • Thread