drag and drop: NSView vs. NSImageView
drag and drop: NSView vs. NSImageView
- Subject: drag and drop: NSView vs. NSImageView
- From: Michael Becker <email@hidden>
- Date: Fri, 5 Mar 2004 16:27:39 +0100
Hi!
In order to enable drag and drop, I subclassed NSView. Everything
worked nicely. But because I need to display an image in my view, I
changed it to be a subclass of NSImageView instead of NSView. Now the
drag and drop doesn't work anymore. Even my initWithFrame: method
doesn't get called.
The only thing I changed was this:
before:
#interface PCFolderDrop : NSView {
after:
#interface PCFolderDrop : NSImageView {
And of course I changed the NIB. (I deleted the old NSView, put in an
NSImageView, then configured it to be of the custom class
PCFolderDrop).
What am I missing here?
Bye,
Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.