Adam Nash
2012-10-07 20:47:12 UTC
unsubscribe
-----------
Adam Nash
***@cs.stanford.edu
http://www.linkedin.com/in/adamnash
http://www.facebook.com/adamnash
http://www.twitter.com/adamnash
-----------
Adam Nash
***@cs.stanford.edu
http://www.linkedin.com/in/adamnash
http://www.facebook.com/adamnash
http://www.twitter.com/adamnash
Send MacOSX-dev mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
http://www.omnigroup.com/mailman/listinfo/macosx-dev
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MacOSX-dev digest..."
1. Re: Dragging file promises (Fritz Anderson)
2. Re: Dragging file promises (Christiaan Hofman)
Subject: Re: Dragging file promises
Date: October 6, 2012 12:35:58 PM PDT
namesOfPromisedFilesDroppedAtDestination: isn't a delegate method, but a part of a protocol. And I don't see how NSTableView would know to call dragPromised... "implicitly," given that it never knows that it contains things that could me converted into file promises.
Could you post your code, please?
— F
--
Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement in the works -- <http://x4u.manoverboard.org/>
Subject: Re: Dragging file promises
Date: October 6, 2012 1:45:45 PM PDT
namesOfPromisedFilesDroppedAtDestination: isn't a delegate method, but a part of a protocol.
A protocol for a delegate (it's not a delegate you set explicitly, but the dragging source is implicitly used as the delegate for the drag operation.) Moreover, a corresponding method is a delegate (or more precisely datasource) method for NSTableView, which is really what it passes through in the end of the drop.
Christiaan
_______________________________________________
MacOSX-dev mailing list
http://www.omnigroup.com/mailman/listinfo/macosx-dev
To subscribe or unsubscribe via the World Wide Web, visit
http://www.omnigroup.com/mailman/listinfo/macosx-dev
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MacOSX-dev digest..."
1. Re: Dragging file promises (Fritz Anderson)
2. Re: Dragging file promises (Christiaan Hofman)
Subject: Re: Dragging file promises
Date: October 6, 2012 12:35:58 PM PDT
I am trying to figure out how to drag file promises from views such as NSTableView. Before 10.6, I knew how to do this using NSFilesPromisePboardType and the namesOfPromisedFilesDroppedAtDestination: delegate methods.
I'm having trouble getting my head around any of this. For instance, -namesOfPromisedFilesDroppedAtDestination: isn't a delegate method, but a part of a protocol. And I don't see how NSTableView would know to call dragPromised... "implicitly," given that it never knows that it contains things that could me converted into file promises.
Could you post your code, please?
— F
--
Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement in the works -- <http://x4u.manoverboard.org/>
Subject: Re: Dragging file promises
Date: October 6, 2012 1:45:45 PM PDT
I am trying to figure out how to drag file promises from views such as NSTableView. Before 10.6, I knew how to do this using NSFilesPromisePboardType and the namesOfPromisedFilesDroppedAtDestination: delegate methods.
I'm having trouble getting my head around any of this. For instance, -namesOfPromisedFilesDroppedAtDestination: isn't a delegate method, but a part of a protocol.
And I don't see how NSTableView would know to call dragPromised... "implicitly," given that it never knows that it contains things that could me converted into file promises.
If you put a NSFilesPromisePboardType on the dragging pasteboard from the NSTableView datasource method tableView:writeRowsWithIndexes:toPasteboard: (remember, I am talking about dragging, and this is how you start a drag from NSTableView), then promised files are dragged automatically, which should go through the view method implicitly (i.e. you don't have to do that yourself, NSTableView does this for you.) And at the drop the namesOfPromisedFiles... method is called.Could you post your code, please?
— F
It really should not matter that much what the code is. The bottom line from this is that I say that I know how to drag file promises using the old API. And my question is how to drag file promises using the new API and UTIs. I did not go into detail, and really think I shouldn't, because anyone who could answer my question would know what I am talking about, and the code should be straightforward but tedious. So if you don't know what I am talking about, you almost certainly won't be able to answer my question.— F
Christiaan
_______________________________________________
MacOSX-dev mailing list
http://www.omnigroup.com/mailman/listinfo/macosx-dev