All Questions
Tagged with drag-and-drop objective-c
228
questions
1
vote
1
answer
1k
views
Dragging files into other applications in cocoa OSX
I'm trying to convert a windows application into OSX, everything is working now, except this small feature, the drag&drop of files from my app into any other window that supports drops. Receiving ...
0
votes
0
answers
475
views
objective c Drag And Drop IN OS X Sierra 10.12
In OS X sierra 10.12 Drag and drop is not working properly with NSTabView....
Drag and drop seems to only work in label of TabView not the entire tab ..you can see in the following project sample......
0
votes
1
answer
566
views
How to get the UIView object at the location of UITouch from - (void)touchesEnded:withEvent:?
I want to get the object at the location of where the touch is lifted (off the screen).
This will be used to implement a drag-and-drop and I have these methods for overriding:
- (void)touchesBegan:(...
0
votes
1
answer
418
views
How to recognize one finger drag on trackpad on mac OS X
I'm having some troubles reading trackpad events. I need to catch a single tap and a drag of one finder on trackpad. And also to distinguish them. Catching a single tap is working like this:
- (void)...
0
votes
1
answer
106
views
Drag swap NSViews
Because you never know, it might be useful, I've been trying to write a flexible NSSplitView experimental app where views can be added, and removed, on the fly in any way that the user wants. That ...
0
votes
1
answer
237
views
UIGestureRecognizer not called after setting UIViews frame inside UIScrollView
i am having some very strange issue. Basically i am implementing a drag and drop view with a snap to the horizontal 1D grid. Well, so when i drag a view and its center coordinate X is bigger or ...
1
vote
1
answer
437
views
draggingEntered: called but performDragOperation: not on IKImageBrowserView
I'am using the IKImageBrowserView with setting a drop deleagte
[self.imageBrowserView setDraggingDestinationDelegate:self];
No matter what i return in draggingEntered: the performDragOperation: ...
0
votes
1
answer
1k
views
Dragging cell outside of UICollectionView frame changes its contentOffset
There's this bug happening when I drag a UICollectionViewCell outside of the frame of the collection: the collection's contentOffset is reset to 0, I suppose to scroll to top, even when dragging the ...
0
votes
1
answer
116
views
How to disable all drag-and-drop operations when NSAlert is shown as modal window
I have NSWindow with custom NSView. This custom NSView override performDragOperation method. Drag-and-drop operations works good. But when I create and show NSAlert as modal window I need block drag-...
0
votes
2
answers
100
views
How to add an object in an UITableView by drag and drop it in?
So on my main View I've got an UITableView.
On this view, with a button, I'm able to add an object which I've called: SelectPostIt (which come from my nib SelectPostIt.xib ).
These Post It are ...
0
votes
1
answer
22
views
How to know the last x & y values at the end of a dragNdrop?
So I have a view with an UITableView on which I am able to add some objects (they come from my nib: SelectPostIt.xib).
These objects are draggable and what I want to do later is, when I'll drag then ...
0
votes
1
answer
194
views
UIView drag drop with replace feature [iOS]
I'm trying to do two main views (dropped zone) and two sub views (dragged views) with replacement feature with Move/Drag Gestures,
an example:
UIView *mainView;
mainVire.dropped = YES;
this let ...
1
vote
0
answers
178
views
NSOutlineView drag and drop item as file
I'm recently working on an project aimed to extract files from an rar archive. I use an NSOutlineView to present the content. In which every file and directory listed as an item of class Entry. I want ...
3
votes
1
answer
517
views
Exchange position of cells by gesture
I have UICollectionView in which I have a prototype cell and UIImageView in it.I am displaying random images in UICollectionView.
Now I want to exchange position of UIImageView by swiping it to near ...
0
votes
1
answer
339
views
Drag a cell from 1 table view and drop it onto a cell in a 2nd table view to invoke segue
I'm trying to attain a visual interaction between two tables, inside one controller, by dragging and dropping a cell from one table onto another tables cell. When one dragged cell contacts another ...