• 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
Getting mouse moved events on overlay windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting mouse moved events on overlay windows


  • Subject: Getting mouse moved events on overlay windows
  • From: Markus Spoettl <email@hidden>
  • Date: Mon, 30 Jun 2008 23:52:57 -0700

Hello List,

I have a WebView with a transparent overlay window + custom view "attached" it to allow for custom overlay drawing on top of what the WebView displays. This works very well.

However, I can't figure out a way to get -mouseMoved: messages on the overlay window's view. Tracking areas as well as -mouseMoved: messages (with setting acceptsMouseMovedEvents:YES on the overlay window) don't work because the overlay window is borderless (NSBorderlessWindowMask) and transparent and the framework does not send those messages to it.

So I thought, I go through a WebView subclass, establishing the tracking area there and forward the mouse messages to the overlay window and its view manually. Unfortunately this doesn't work either because the tracking area events are only firing if there is no overlay.

The overlay view does get -mouseDown:, -mouseUp: and -mouseDragged: events, but not -mouseMoved:. I'm pretty out of ideas, how can I get - mouseMoved: messages on the overlay window?

Thanks for any input!

Regards
Markus
--
__________________________________________
Markus Spoettl

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Implementing NSOutlineView autosaveExpandedItems with CoreData
  • Previous by thread: Problem in Custom Window
  • Index(es):
    • Date
    • Thread