Skip to main content

All Questions

-1 votes
1 answer
25 views

Is there a way to be notified any time a drag-and-drop operation begins in the current application?

I'm working on a framework that's intended to be added to a native macOS application so that it can post events into the application's event queue in response to touch-screen events. In order to ...
Bri Bri's user avatar
  • 2,329
0 votes
1 answer
93 views

The methods for Drag and Drop in NSOutlineView are not getting called

I'm trying to enable drag and drop functionality for NSOutlineView in my MacOS app. I want to drag a child from a folder to another folder within the outline view. I want test asset 1 to be dragged ...
Ishi's user avatar
  • 3
0 votes
0 answers
177 views

How to create a new window by drag and drop?

I'm working on implementing 'drag-and-drop' such that dragging a cell in my view would create a new window on the side of my application. I looked up a lot of resources and they all walk me through ...
Z X's user avatar
  • 11
0 votes
0 answers
51 views

Setting text color of cells in outline view while dragging

I have a split view window with an outline view on the left and a table view on the right. I want to be able to drag items from the table view and drop them onto items in the outline view. The ...
johnpurlia's user avatar
0 votes
0 answers
36 views

How can I add a border to NSWindow for a drag operation?

I'm trying to add a border to an NSWindow for a drag operation (in the same way that dragging into a Finder window puts a blue border around it). The problem I'm experiencing is that the border is ...
headbanger's user avatar
  • 1,092
0 votes
0 answers
150 views

Swift - Notify when the user is starting to drag an object outside my app

I have an App that handles files dropped into the window using the Swift Drag-and-Drop mechanism. I would like to implement whenever the user starts dragging an object outside my app, that my UI will ...
Curious Fishel's user avatar
0 votes
1 answer
130 views

iOS 11 DropInteraction Session from Photos returns invalid file path

When dropping images from the Photos app into my custom application, at - (void)dropInteraction:(UIDropInteraction *)interaction performDrop:(id<UIDropSession>)session I receive an NSURL* whose ...
Mapsy's user avatar
  • 4,262
0 votes
1 answer
111 views

Cocoa: drag and drop inconsistency

In my cocoa code, I’ve implemented a drag & drop for a file path. It is triggered not by a mouseDown, but as a result of a callback I receive from javascript code (after click-dragging an HTML ...
gil_mo's user avatar
  • 605
3 votes
1 answer
1k views

iOS Drag & Drop. How to replace a cell with a custom view while dragging

Is it possible to completely replace an element from draggable UITableViewCell to custom UIView? For example, I drag a cell, and I want to display a circle when I click on the cell, and in the ...
Mikhail S's user avatar
  • 4,014
0 votes
1 answer
132 views

Can't access property sourceIndexPath on UIDragItem

I'm creating a viewcontroller that contains two separate UICollectionViews. I'm allowing for cells to be dragged from one UICollectionView to another. In the method -(void)collectionView:(...
Martijn's user avatar
  • 460
0 votes
1 answer
48 views

Can't Drag from NSTableView with more than one row

I'm writing an app that should allow me to drag items from an NSTableView to another view (custom timeline view). This works perfectly as long as there is only one item in my NSTableView. The fist ...
Kenny's user avatar
  • 1,121
0 votes
1 answer
240 views

NSOutlineView drag-n-drop multiple items to single xml file Finder

I have a NSOutlineView with drag and drop support to reorder rows. Now I would like to add an export of the selected rows to a opml file in Finder. I've managed to set up NSFilePromiseProvider during ...
lupdidup's user avatar
  • 301
2 votes
2 answers
806 views

OSX - Get File Path from FileURL from Drag and Drop with Sandboxed application

I am Using Drag and Drop to drop a File onto my APP. Apple deprecated NSFilenamesPboardType in OSX 10.14 and suggests using NSPasteboardTypeFileURL. The URL(String) I get is: file:///.file/id=...
r.t.s.'s user avatar
  • 585
2 votes
2 answers
1k views

UICollectionView drag and drop remove translucent cell

I'm using iOS 11 drag and drop API for reordering and want to remove translucent cell which appears on start dragging. Is it possible? For dragging I use only required method of ...
nemissm's user avatar
  • 453
1 vote
0 answers
302 views

Drag & drop issue of invisible collection view cell

Updated description Please find image here. here i have used two collection view.one for question and second for option and i want to fill in the blank with option by using drag and drop. but there ...
Manish Patel's user avatar

15 30 50 per page
1
2 3 4 5
16