• 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: move drag and drop operations between different data sources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: move drag and drop operations between different data sources


  • Subject: Re: move drag and drop operations between different data sources
  • From: Johan Rydberg <email@hidden>
  • Date: Sun, 12 Sep 2010 15:05:51 +0200

Kyle,

if your data source just acts as source, and not destination, there's now in
the writeRows-method to know where the rows will end up. Hense, it's not
possible to do move between tables in different application (where
acceptDrop:row:... will never be called for the drag data source).  Right?

Cheers
Johan



On Fri, Sep 10, 2010 at 7:28 PM, Kyle Sluder <email@hidden> wrote:

> On Sep 10, 2010, at 2:13 AM, Johan Rydberg <email@hidden>
> wrote:
>
> > I'm researching the drag and drop facilities in NSTableView.
> >
> > Since there's no "commit drag" method in the data source protocol, is it
> > possible to do a move operation between two tables with different data
> > sources?  If so, when and how is the row removed from the drag data
> source?
>
> This is what the -draggingSource method on NSDraggingInfo is for. If the
> drag is coming from within your app, this method will return the drag source
> object. In your drag destination, inspect this object to coordinate the move
> between your data sources.
>
> --Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: move drag and drop operations between different data sources
      • From: Kyle Sluder <email@hidden>
References: 
 >move drag and drop operations between different data sources (From: Johan Rydberg <email@hidden>)
 >Re: move drag and drop operations between different data sources (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: i5 & i7 auto graphics switching
  • Next by Date: Re: move drag and drop operations between different data sources
  • Previous by thread: Re: move drag and drop operations between different data sources
  • Next by thread: Re: move drag and drop operations between different data sources
  • Index(es):
    • Date
    • Thread