Re: Determining an inter-application drag source

2010-03-26 Thread Steve Christensen
Well, other than saying "one could argue it's the failure of these digital asset managers..." to suggest that there are missing features. :) And having a nil dragSource makes sense if the source and destination for the drag are in different processes. The drag source is an object (type id

Re: Determining an inter-application drag source

2010-03-26 Thread Jeffrey J. Early
On Mar 26, 2010, at 11:31 AM, Jens Alfke wrote: > > On Mar 26, 2010, at 7:40 AM, Jeffrey J. Early wrote: > >> They actually don't have to be inside the library bundle... there's an >> "Advanced" preference to not copy the original into the library. > > In that case, the image file would be vis

Re: Determining an inter-application drag source

2010-03-26 Thread Mike Abdullah
On 26 Mar 2010, at 14:43, Jeffrey J. Early wrote: > Gotcha -- sorry if I read into that a bit much. > > I haven't complained this as a missing feature here at all yet -- I was > actually still under the impression that there was a mechanism to determine > the drag source that I didn't know abo

Re: Determining an inter-application drag source

2010-03-26 Thread Jens Alfke
On Mar 26, 2010, at 7:40 AM, Jeffrey J. Early wrote: > They actually don't have to be inside the library bundle... there's an > "Advanced" preference to not copy the original into the library. In that case, the image file would be visible to other apps. So I might have dragged the photo from t

Re: Determining an inter-application drag source

2010-03-26 Thread Jeffrey J. Early
Gotcha -- sorry if I read into that a bit much. I haven't complained this as a missing feature here at all yet -- I was actually still under the impression that there was a mechanism to determine the drag source that I didn't know about. As the consensus appears to be that there isn't, I will f

Re: Determining an inter-application drag source

2010-03-26 Thread Jeffrey J. Early
On Mar 26, 2010, at 10:23 AM, Jens Alfke wrote: > > On Mar 26, 2010, at 7:00 AM, Jeffrey J. Early wrote: > >> When a user drags a photo from iPhoto to my application I need to be able to >> update iPhoto's database (via ScriptingBridge) with changes that are made >> while in my program. > >

Re: Determining an inter-application drag source

2010-03-26 Thread Steve Christensen
I wouldn't say that there has been any argument over whether or not knowing the drag source is a good thing; we were simply asking why you needed to know. You could have just as easily made a bad assumption about something else and were trying to fix it in the drag. And if you would like to

Re: Determining an inter-application drag source

2010-03-26 Thread Jens Alfke
On Mar 26, 2010, at 7:00 AM, Jeffrey J. Early wrote: > When a user drags a photo from iPhoto to my application I need to be able to > update iPhoto's database (via ScriptingBridge) with changes that are made > while in my program. Can you check the path to the file and see if it’s inside the i

Re: Determining an inter-application drag source

2010-03-26 Thread Jeffrey J. Early
I apparently didn't hit reply-all on my response to Steve. I wrote: When a user drags a photo from iPhoto to my application I need to be able to update iPhoto's database (via ScriptingBridge) with changes that are made while in my program. Other programs require different bits of "extra work" to

Re: Determining an inter-application drag source

2010-03-26 Thread Matt Gough
A fragile way would be to see what other drag types are being put on the pasteboard. I imagine Finder has some esoteric old types for backwards compatibility and I would guess that Aperture has some image types that the Finder wouldn't normally use (except maybe for picture clippings) But as St

Re: Determining an inter-application drag source

2010-03-25 Thread Steve Christensen
I'm curious why you need to know where the drag originated since it generally shouldn't matter. Do you have to do some extra work in one case? And what happens if you see a drag from another application? On Mar 25, 2010, at 7:55 AM, Jeffrey J. Early wrote: Is there any way to determine the

Determining an inter-application drag source

2010-03-25 Thread Jeffrey J. Early
Is there any way to determine the source of a drag operation outside your own application? For example, if I'm set to receive NSFilenamesPboardType, then I'd like to distinguish between the Finder and Aperture as drag sources. I had thought I'd seen a solution to this at one point, but can't see