• 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
How do enforce a scrollPageDown on a view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Validating a new entity in one-to-many relationships in Core Data
  • Next by Date: Distributed Objects between cats
  • Previous by thread: Validating a new entity in one-to-many relationships in Core Data
  • Next by thread: Distributed Objects between cats
  • Index(es):
    • Date
    • Thread