Skip to main content

All Questions

1 vote
1 answer
1k views

Cannot get drag and drop to work onto NSCollectionView

There is probably a simple mistake that I'm making, but I simply cannot get dropping of files onto an NSCollectionView to work even in the most basic way. In a test project, I have an ...
fbitterlich's user avatar
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 ...
Matt's user avatar
  • 448
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 ...
sidyll's user avatar
  • 58.8k
2 votes
1 answer
188 views

Drag from NSCollectionView to NSOutlineView

OK, here's is what I want to do : I have an NSCollectionView filled with items I have an NSOutlineView (a "tree" structure actually) I want to be able to drag any item from the NSCollectionView and ...
Dr.Kameleon's user avatar
  • 22.8k
3 votes
1 answer
2k views

Drag and drop from Cocoa App to Finder

I have a NSCollectionView, that displays some files: What I want is... being able to select one file. being able to drag this file and drop it on the desktop or another Finder window. The file ...
Daniel's user avatar
  • 1,807
6 votes
2 answers
6k views

NSCollectionView Drag and Dropping: Most Delegate Events Not Getting Called

I have an NSCollectionView bound to an NSArrayController. I want to get drag and drop working, so I create a delegate and implement the methods -(BOOL)collectionView:(NSCollectionView *)...
James Williams's user avatar
4 votes
3 answers
3k views

Accepting drag operations in an NSCollectionView subclass

I've subclassed NSCollectionView and I'm trying to receive dragged files from the Finder. I'm receiving draggingEntered: and returning an appropriate value, but I'm never receiving ...
andyvn22's user avatar
  • 14.8k
0 votes
1 answer
912 views

NSCollectionView subclass doesn't call drawRect during drag session despite setNeedsDisplay

Greetings, I am puzzled as to how and when drawRect is supposed to be called in a NSCollectionView subclass. I implement drag and drop operation in order to move NSCollectionViewItems within the ...
Alain Vitry's user avatar