I am building an application using Cocoa bindings. I have a table view that has many fields. For fields with simple text or simple dates inside, everything works OK. But now, I want to implement something a drag and drop feature that goes like this:
There will be a view (NSView??) on the bottom right of the window, so that the user can drag a file onto it. When the user drags the file, this will converted to plain NSData tat will be associated with the selected item in the NSTableView. Imagine an NSTableView that contains field like "name", "salary" and a field that contains an NSData object.
How can I do this? Will I need to create a custom NSCell? A custom control? I don't know where to start!
There will be a view (NSView??) on the bottom right of the window, so that the user can drag a file onto it. When the user drags the file, this will converted to plain NSData tat will be associated with the selected item in the NSTableView. Imagine an NSTableView that contains field like "name", "salary" and a field that contains an NSData object.
How can I do this? Will I need to create a custom NSCell? A custom control? I don't know where to start!