Flutterby™! : Mac drag & drop

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

Mac drag & drop

2006-10-11 17:14:25.064991+00 by Dan Lyke 2 comments

I'm lookin' at markd for this, but maybe someone else will know. And I'm hoping the answer is not "use Cocoa", but I'm prepared to believe that it might be.

I've got a Carbon data browser control with a list of layers. The user can reorder the layers with drag and drop.

Everything seems to be working, except that the highlight is, as a user describes it, "as though I'm going to drop the layer on the other layer". What I really want is some sort of visual indication that the user is going to be dropping the layer in between (or after) the layer below the cursor.

I'm guessing that this is something that I'll either change for the control, or return in my .acceptDragCallback. Any suggestions?

[ related topics: Software Engineering Macintosh ]

comments in ascending chronological order (reverse):

#Comment Re: made: 2006-10-11 17:30:31.145413+00 by: markd

yeah, I can't offer a lot of advice in Carbon-land. In cloudCocoaLand, using something like a tableview, you can get different feedback on in-between-rows vs on-top-of-row for that differentiation (NSTableViewDropAbove vs NSTableViewDropOn. DropOn, Drop Directly on the Forehead. DropOn...) There's probably something similar in the Carbon data browser. Usually I'd point folks to the carbon-dev mailing list, or the carbondev.com wiki.

#Comment Re: made: 2006-10-11 18:36:31.685748+00 by: Dan Lyke

No response to my query on carbon-dev, and a cursory search doesn't show anything on carbondev.com, but I'll dig further, and that link looks like it might be handy, although I'm guessing that we'll be doing something other than Carbon soon, whether it's a portability abstraction layer on top of Cocoa or widgets done entirely in OpenGL.

Here's me hoping for the latter or something that lets us write to Gtk as well.