• 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: How can I tell that a view has scrolled?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I tell that a view has scrolled?


  • Subject: Re: How can I tell that a view has scrolled?
  • From: Allan Odgaard <email@hidden>
  • Date: Sat, 17 Apr 2004 06:45:25 +0200

On 17. Apr 2004, at 5:27, Ivan Kourtev wrote:

I suppose drawRect will get sent after scrolling but that's too unreliable because I need to know that the user has scrolled and where for purposes other than drawing.

May I ask which?

Does a scroll view tell its enclosed views that scrolling has occurred in any way other than marking them for redrawing? any help appreciated, thanks.

I think the NSClipView sends translateOriginToPoint: to your view. This can be overloaded, but also generates a NSViewBoundsDidChangeNotification. I do not know of a documented way to intercept the scroll.







** Cocoa FAQ: <http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: How can I tell that a view has scrolled?
      • From: Ivan Kourtev <email@hidden>
References: 
 >How can I tell that a view has scrolled? (From: Ivan Kourtev <email@hidden>)

  • Prev by Date: Re: [now OT] Licensing/Implementing in Cocoa/Obj-C - Interest in product?
  • Next by Date: Re: [now OT] Licensing/Implementing in Cocoa/Obj-C - Interest in product?
  • Previous by thread: How can I tell that a view has scrolled?
  • Next by thread: Re: How can I tell that a view has scrolled?
  • Index(es):
    • Date
    • Thread