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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to