Skip to main content

All Questions

47 votes
1 answer
25k views

Tutorial on How to drag and drop item from UITableView to UITableView [closed]

I've been banging my head on this one for a while and I figured it out. I want to give back to the community since I've gotten a lot of help from this website :). I'm trying to copy an item from one ...
mj_'s user avatar
  • 6,407
23 votes
4 answers
5k views

Opening a gap in NSTableView during drag and drop

I've got a simple, single-column, view-based NSTableView with items in it that can be dragged to reorder them. During drag and drop, I'd like to make it so that a gap for the item-to-be-dropped opens ...
Andrew Madsen's user avatar
16 votes
1 answer
20k views

iPhone drag/drop

Trying to get some basic drag/drop functionality happening for an iPhone application. My current code for trying to do this is as follows: - (void) touchesMoved:(NSSet*)touches withEvent:(UIEvent*)...
Simon's user avatar
  • 935
12 votes
2 answers
6k views

Drag-and-drop files onto an NSTableView?

I have an NSTableView which I wish to allow users to drag-and-drop video files onto. When they drop the file, it'll get added as a row in the table view. How would I go about doing this? Currently ...
dbr's user avatar
  • 168k
12 votes
2 answers
3k views

Cocoa NSView subview blocking drag/drop

I have an NSView subclass which registers for drag files in init method like this: [self registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]]; The drag drop works perfectly ...
user635064's user avatar
  • 6,247
11 votes
2 answers
3k views

NSView Subviews interrupting drag operation

I have an NSView which is registered for a drag operation. In that view I have a subclassed NSScrollView, which in itself has an NSImageView in it. When dragging onto the original NSView, everything ...
mootymoots's user avatar
  • 4,555
10 votes
2 answers
2k views

How to use a NSStatusItem as a drag destination?

I'm trying to build an application that allows users to drag files from Finder to the menubar icon for processing. I've made progress in my journey, but I can't seem to summit this hill. I tried ...
doomspork's user avatar
  • 2,332
9 votes
2 answers
4k views

Problem with Drag-Drop from NSTableView to Finder

I've created an app that has a NSTableView which represents a series of files. From this, I want to be able to drag a row (i.e. a filename) from my NSTableView to Finder, and the file be created in ...
RichS's user avatar
  • 3,127
9 votes
6 answers
19k views

iPhone App: implementation of Drag and drop images in UIView

In my iPhone App I want to implemented functionality as shown below user can pick a shape(an image) from one view and put in other view How can I achieve this?
ios's user avatar
  • 6,154
9 votes
1 answer
5k views

how to program drag and drop with snap to area in Objective-C for IOS

I am looking to implement something in Objective-C for the IOS platform. I want to have two GUI objects, let's just say they are UIImages for simplicity and are square shapes. And then I have an "...
user461051's user avatar
9 votes
2 answers
8k views

Drag UIView between UIViews

I have a UIView object X that is contained in an UIView object A. I want to be able to touch X and remove it from object A and move it into object B (another UIView). Both Object A & B are inside ...
Kendall Hopkins's user avatar
9 votes
0 answers
2k views

UICollectionView cells appear duplicated in place after cancelled drag sessions

I’m having trouble with an obscure problem implementing local drag and drop in a UICollectionViewController. The collection view allows dragging of items into and out of folders. All looks and works ...
Derek Pollard's user avatar
8 votes
2 answers
6k views

Cocoa: Drag and Drop any file type

I'm trying to create a drag and drop region that accepts any file type and will upload it to a server (using ASIHTTPRequest). I looked at the following example that Apple provides: http://developer....
minimalpop's user avatar
  • 7,037
8 votes
1 answer
6k views

How to implement GMSMarker drag drop on GMSMapView?

I set the marker on google map but when i drag it's all of map are drag. I want drag marker when click and drag on it's and drag map when click and drag outside marker. this is my code self.camera =...
user2955394's user avatar
  • 1,183
7 votes
3 answers
3k views

UIControlEventTouchDragExit triggers when 100 pixels away from UIButton

At present, the UIControlEventTouchDragExit only triggers when I drag 100 pixels away from the button. I'd like to customize this behavior and bring that range in to around 25 pixels, but I'm ...
Luke's user avatar
  • 9,650

15 30 50 per page
1
2 3 4 5
16