Hello,
I am having trouble detecting events performed on a WebKit WebView. This is my code inside of the WebView subclass:
I create my instance of this custom WebView (named BlurWiseWebView) like so (inside the AppDelegate):
I don't see anything wrong. Could someone please assist me?
Thanks!
I am having trouble detecting events performed on a WebKit WebView. This is my code inside of the WebView subclass:
Code:
- (void)scrollWheel:(NSEvent *)theEvent
{
if([theEvent phase])
{
NSLog(@"Scrolling!!");
}
else
{
NSLog(@"Scrolling!"); }
}
-(void)mouseDown:(NSEvent *)theEvent{
NSLog(@"Mouse Down!!");
}
I create my instance of this custom WebView (named BlurWiseWebView) like so (inside the AppDelegate):
Code:
mBlurWiseWebView = [[BlurWiseWebView alloc]initWithFrame:NSMakeRect(0, 0, _window.frame.size.width, _window.frame.size.height)];
I don't see anything wrong. Could someone please assist me?
Thanks!
Last edited: