Re: Getting mouse moved events on overlay windows

2008-07-04 Thread James Bucanek
Markus Spoettl wrote (Monday, June 30, 2008 11:52 PM -0700): 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) d

Re: Getting mouse moved events on overlay windows

2008-07-02 Thread Shripada Hebbar
Apologies for suggesting what you had already tried. I had overlooked the original message!:-) Regards Shripada On Jul 1, 2008, at 10:10 PM, Shripada Hebbar wrote: If your app is Leopard only, you better take a look into NSTrackingArea at: http://developer.apple.com/documentation/Cocoa/Con

Re: Getting mouse moved events on overlay windows

2008-07-02 Thread Markus Spoettl
On Jul 1, 2008, at 10:10 PM, Shripada Hebbar wrote: If your app is Leopard only, you better take a look into NSTrackingArea at: http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/TrackingAreaObjec ts/chapter_7_section_4.html#//apple_ref/doc/uid/1060i-CH8- DontLinkElem

Re: Getting mouse moved events on overlay windows

2008-07-02 Thread Markus Spoettl
On Jul 1, 2008, at 11:48 PM, Owen Yamauchi wrote: You need to override -acceptsMouseMovedEvents to return YES in the window that needs them. That only has an effect on windows that have borders. Regards Markus -- __ Markus Spoettl _

Re: Getting mouse moved events on overlay windows

2008-07-01 Thread Owen Yamauchi
You need to override -acceptsMouseMovedEvents to return YES in the window that needs them. Owen ___ Cocoa-dev mailing list (Cocoa-

Re: Getting mouse moved events on overlay windows

2008-07-01 Thread Shripada Hebbar
Markus, If your app is Leopard only, you better checkout: NSTrackingArea at: http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/TrackingAreaObjec ts/chapter_7_section_4.html#//apple_ref/doc/uid/1060i-CH8- DontLinkElementID_30 NSTrackingArea has methods to t

Re: Getting mouse moved events on overlay windows

2008-07-01 Thread Markus Spoettl
On Jul 1, 2008, at 3:54 PM, Brett Powley wrote: If you get any further, I'd be keen to hear what you find out. As a matter of fact, I seem to have found something that is much simpler than overlaying: Add a subview to the WebView that doesn't clear its content before drawing. When I firs

Re: Getting mouse moved events on overlay windows

2008-07-01 Thread Markus Spoettl
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 w

Re: Getting mouse moved events on overlay windows

2008-07-01 Thread Brett Powley
Hi Markus, 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 wo

Getting mouse moved events on overlay windows

2008-06-30 Thread Markus Spoettl
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