• 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: detecting scrolling in webView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detecting scrolling in webView


  • Subject: Re: detecting scrolling in webView
  • From: "W. W. Gilpin" <email@hidden>
  • Date: Wed, 13 Jul 2005 02:21:47 -0500

Gary,

Presuming the WebView operates like any other NSView inside a scroll view, I think observing the NSViewBoundsDidChangeNotification sent by the content view of your WebView's enclosing scroll view should get you most of the way there.

Then you can check the application's current event to filter for the key presses you're interested in.

HTH,

W. W. Gilpin
email@hidden


On Jul 12, 2005, at 10:10 PM, Gary Yuen wrote:

Hi,

I posted this in the webkitsdk-dev but wasn't able to get a lot of responses.

I'm curious how to find out when someone has scrolled within a webView. I'm guessing it's similar to any other NSResponder event for any other NSView. It seems the only way is to detect when someone has pressed the page up/pagedown or spacebar/shift-spacebar keys? It's ok if I can only detect those events. Finding out when someone has used the scrollbar isn't important for me.

Thanks.

Gary

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >detecting scrolling in webView (From: Gary Yuen <email@hidden>)

  • Prev by Date: Re: Trying to bind to NSTreeController
  • Next by Date: Re: nil properties in Fetch Requests
  • Previous by thread: detecting scrolling in webView
  • Next by thread: NSMenuItem attributed title size discrepancy
  • Index(es):
    • Date
    • Thread