• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drawer: drag-n-drop destination?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Drawer: drag-n-drop destination? (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Sending a paste event to another app?
  • Next by Date: Re: God, that's NOT THE WAY!!!! (was: Use -display INSTEAD of -setNeedsDisplay)
  • Previous by thread: Drawer: drag-n-drop destination?
  • Next by thread: Print Panel as sheet
  • Index(es):
    • Date
    • Thread