Why does NSImageView Mask the Drop Zone of a Subview
Why does NSImageView Mask the Drop Zone of a Subview
- Subject: Why does NSImageView Mask the Drop Zone of a Subview
- From: Jerry Krinock <email@hidden>
- Date: Wed, 10 May 2006 08:09:43 -0700
- Thread-topic: Why does NSImageView Mask the Drop Zone of a Subview
I'm trying to make a "File Drop" subview into which files can be dropped.
This is similar to Seth Willits' FileDropView and Apple's CocoaDragAndDrop,
but since I need a lot of these, I've expanded it into a subview with two
outlets:
IBOutlet NSImageView* image ; // Shows image of file
IBOutlet NSTextView* label ; // Shows name of file
My only problem is that the frame of the NSImageView is excluded from my
subview's drop zone. That is, my drop zone has a hole in the middle; I get
draggingExited: when the mouse enters the frame of the NSImageView.
This does not happen when the mouse enters the frame of the NSTextView, (or
that of an NSButton, which I experimented with).
What's so special about the NSImageView? It is "enabled".
IB's Layout > Send To Back does not help.
Thanks,
Jerry
FileDropView:
http://www.cocoadev.com/index.pl?DroppingFileInWell
CocoaDragAndDrop:
http://developer.apple.com/samplecode/CocoaDragAndDrop/CocoaDragAndDrop.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden