All Questions
45
questions
-1
votes
1
answer
26
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 ...
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 ...
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 ...
2
votes
2
answers
812
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=...
0
votes
0
answers
147
views
OS X objective c Drag and Drop text inside textfield to change the order
I wanted separation and drag and drop of text inside NSTextfield or NSTextview. Please find sample of this in Mac System Preferences-> Language & Region -> Advanced ->Dates
Screenshot attached.
2
votes
0
answers
276
views
NSFilePromiseReceiver returns NSURLErrorDomain -1001 "(null)" when receiving files
I've been working to update the performDragOperation method to use NSFilePromiseReceiver. However, any time I drag a file, the reader returns
Error Domain=NSURLErrorDomain Code=-1001 "(null)"
Here'...
1
vote
1
answer
216
views
Remove blue line while drag drop in NSTableView mac app objective c
I have implemented drag drop feature in tableview. When doing drag drop, the blue line appears by default, I want to customise/remove this blue line.
This may be a possible duplicate but I could not ...
0
votes
0
answers
358
views
NSView based NSTableView – strange bouncing rows for Drag and Drop with NSTableViewDraggingDestinationFeedbackStyleGap
I have a view-based instance of NSTableView for which I’ve been changing the draggingDestinationFeedbackStyle, as most NSTableView Drag and Drop questions have been updated with reference to this ...
3
votes
0
answers
678
views
Implement drag and drop in nsviewcontroller
I'm trying to catch drag and drop event in nsviewcontroller, but
draggingEntered
is not called .
here is my code :
- (void)viewDidLoad {
[self.view registerForDraggedTypes:[NSArray ...
0
votes
1
answer
786
views
Reordering NSCollectionView with (Flow Layout)
I have a NSCollectionView, which I want to reorder. I´m using a Flow Layout, Delegate and Datasource is set to my ViewController.
I have also registered my drag type but I only get the delegate call ...
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
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)...
3
votes
1
answer
833
views
NSCollectionView: Accept Drag Only Between Items, not Over
I have a NSCollectionView implemented and working fine. However, when
dragging items around to re-arrange them, I'd like to accept drags only
between objects.
The current behaviour is that you can ...
1
vote
1
answer
238
views
Drag and drop does not work with NSStatusItem from OSX Dock's Download Stack
I am trying to get the file from OSX Dock's Download Stack. When i drag a file draggingEntered and draggingExited is called. But neither performDragOperation nor concludeDragOperation is called.
...
0
votes
0
answers
124
views
Drag and drop MIDI files to Finder is working but not other applications
I'm trying to implement drag and drop from a NSOutlineView in my application to other applications (.mid MIDI files), and it is working. I can drag them to Reaper (the DAW) into a track and I can drag ...