Trouble getting drag and drop to work
Trouble getting drag and drop to work
- Subject: Trouble getting drag and drop to work
- From: Tristan Harris <email@hidden>
- Date: Wed, 5 Dec 2001 18:15:20 -0800
HI all,
I tried implementing drag and drop, but I really don't know what I'm
doing. My main controller header subclass is as follows:
@interface MyController : NSObject {
IBOutlet NSImageView* soundWell;
}
MyController is extended from NSObject.... and essentially, I want the
user to be able to drag in files to "soundWell" in Interface builder,
but I don't know what to do to get it working. I've read all the
documentation saying how I should "registerForDraggedTypes" but it
simply doesn't work. Can someone please provide a brief code snippet?
Thanks,
-Tristan