How do enforce a scrollPageDown on a view?
How do enforce a scrollPageDown on a view?
- Subject: How do enforce a scrollPageDown on a view?
- From: Steve Palmer <email@hidden>
- Date: Tue, 9 Aug 2005 07:31:34 -0700
If I send a scrollPageDown: to an NSTextView or a WebView, the scroll
view isn't actually scrolled by the time I've sent the message.
Instead the view seems to queue up the scroll for a later pass
through the run loop or in response to a delayed notification - not
sure which. What I want is to enforce the scroll when I send the
message so that I can do something with the view knowing that it has
at least tried to scroll. (Whether or not it actually scrolls is
immaterial as I can check for that by comparing the visibleRect
before and after.)
My hack has been to start a 0.2 second timer to fire after I've sent
the scrollPageDown. I want a better solution that allows me to send a
message to the view immediately.
Any ideas?
Thanks!
- Steve
_______________________________________________
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