I'm building my first application, in which I have a custom NSView
which is used for dragging and dropping files. I've got the registration of the dragging operation down, but still need to design the drag and drop area, so the users actually know that they can drop files on there.
I'd like the area to look something like this:
I've tried some different things out in the drawRect
function of my custom NSView
class, but so far I haven't been able to even draw a dashed border.
Is it possible to draw something like this inside a NSView
, and if so: how do I do it? Or should I just create a image of how I'd like my drag and drop area to look, and insert this into the view?
Thanks in advance.