Re: Drag and drop on table view

2016-12-02 Thread João Varela
> > I am still not sure if I am doing this the right way (extending NSTableView) > because Xcode says "Subclassing NSTableView is usually not necessary”. > > Jan E. Yes, it is usually not necessary and I would go so far as saying that you shouldn’t. I normally create a new delegate class and

Re: Drag and drop on table view

2016-12-02 Thread J.E. Schotsman
> On 02 Dec 2016, at 18:19, Jens Alfke wrote: > > NSTableView has a whole set of delegate calls for implementing drag & drop; > you should use those instead. For example > > - (NSDragOperation)tableView:(NSTableView*)tv > validateDrop:(id )info >

Re: Drag and drop on table view

2016-12-02 Thread Jens Alfke
> On Dec 2, 2016, at 5:36 AM, J.E. Schotsman wrote: > > I am still not sure if I am doing this the right way (extending NSTableView) > because Xcode says "Subclassing NSTableView is usually not necessary”. NSTableView has a whole set of delegate calls for implementing drag

Re: Drag and drop on table view

2016-12-02 Thread J.E. Schotsman
Posted too soon. After implementing draggingUpdated it works :-) I am still not sure if I am doing this the right way (extending NSTableView) because Xcode says "Subclassing NSTableView is usually not necessary”. Jan E. ___ Cocoa-dev mailing list

Drag and drop on table view

2016-12-02 Thread J.E. Schotsman
Hello, Asking the pundits for help again... So far I am unsuccesful trying to implement drag & drop . I want to be able to drag a file or folder on a table view and process the file after that. On startup I do jobList.registerForDraggedTypes( [kUTTypeFileURL as String] ) jobList.setDropRow(