Off the top of my head, a click is offered to the "deepest" NSView,
and can go up the view hierarchy if the deeper view does not handle
it. I'm not certain if acceptsFirstMouse necessarily works this
way. Still, my (hopefully educated) guess would be a subview of the
overall WebView is returning NO for acceptsFirstMouse. Perhaps try
subclassing WebFrameView instead. Not sure if there is a lower/
deeper level NSResponder in the WebView hierarchy.
On Apr 8, 2008, at 3:11 PM, Matt Mashyna wrote:
I think I'm having a mental lapse...
I have a cocoa WebView alone in it's own window. The view has an
image with a hyperlink . It loads the hyperlink URL if you click on
it while the window is in front. Clicking twice on the content if
the window is not in front makes it go to the link because the
first one brings the view into focus and the next one causes webkit
to load the link that was clicked on. I want it to also work on the
first click no mater if the window is in front or not. I just can't
seem to figure it out.
I sub-classed WebView in order to over-ride acceptsFirstMouse but
that never seems to get called. Any ideas where I'm going wrong ?
Thanks,
Matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/mas%
40exbiblio.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden