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

Re: Getting mouse moved events on overlay windows


  • Subject: Re: Getting mouse moved events on overlay windows
  • From: Markus Spoettl <email@hidden>
  • Date: Tue, 1 Jul 2008 21:25:33 -0700

On Jul 1, 2008, at 3:54 PM, Brett Powley wrote:
I ran into exactly the same problem; my view was in a transparent, borderless, and nonactivating panel. It didn't get mouse moved events, and tracking rectangles didn't work either. (My problem was that I wanted to change the cursor when it was inside my view, but it never worked).

I eventually concluded that "Cocoa doesn't expect you to be interested in mouse moved events or setting the cursor for a window that's not active" and gave up. I suspected at the time that it was the "nonactivating" property of the panel that was causing the issue.

If you get any further, I'd be keen to hear what you find out.


That doesn't sound very promising.

One thing I didn't try so far is - instead of trying to overlay the WebView - make it draw into an off-screen buffer which I then use to paint my own view's background. Of course that comes with its own set of problems (coordinating the view sizes). Some of the problems are the same as with overlays, just the other way round (view resizing). Some I'm not even aware of - I'm sure of that.

I have no idea how to do that, or if it's a futile attempt. I also don't like the whole idea particularly much because it just smells like a troublesome hack. Even more so as WebView -drawRect doesn't do the drawing so I don't know how to make it draw exactly when I want it and where I want it.

If someone has input on how to go about this, I'd be more than happy to hear your insight.

Regards
Markus
--
__________________________________________
Markus Spoettl

_______________________________________________

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


References: 
 >Re: Getting mouse moved events on overlay windows (From: Brett Powley <email@hidden>)

  • Prev by Date: setFirstResponder to NSTextField fails 1st time, works next
  • Next by Date: Re: exec(uting) Safari - How (newbie)
  • Previous by thread: Re: Getting mouse moved events on overlay windows
  • Next by thread: Re: Getting mouse moved events on overlay windows
  • Index(es):
    • Date
    • Thread