Drawer: drag-n-drop destination?
Drawer: drag-n-drop destination?
- Subject: Drawer: drag-n-drop destination?
- From: Bill Bumgarner <email@hidden>
- Date: Sun, 16 Dec 2001 10:23:17 -0500
I have implemented a window as a drag target for files/folders (actually,
the Window's delegate handles all of the drag messages) and have run into
an issue for which I don't see an obvious solution.
In particular, when the window's drawer is visible, the drawer area does
not accept dropped files. The window continues to accept drop events as
expected.
Obviously, the drawer isn't accepting events because the drawer is
implemented as a separate window that is effectively one level below the
main window on screen.
The problem is that the drawer's window does not use the same delegate as
the parent window. Likely, the NSDrawer object is the delegate.
It appears that the only workaround is to create an NSView subclass that
handles the drag events in a fashion analogous to NSWindow's delegated
handling?
Or am I missing something (hopefully)?
If not, I'll file an enhancement request via bugreport.apple.com.
thanks,
b.bum