Re: Drawer: drag-n-drop destination?
Re: Drawer: drag-n-drop destination?
- Subject: Re: Drawer: drag-n-drop destination?
- From: Douglas Davidson <email@hidden>
- Date: Mon, 17 Dec 2001 10:01:01 -0800
On Sunday, December 16, 2001, at 07:23 AM, Bill Bumgarner wrote:
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.
In theory, the parent window's delegate should receive these, since
conceptually the drawer is regarded as an additional portion of the
parent window.
Go ahead and file a bug, and in the meantime proceed with your
workaround.
Douglas Davidson