• 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
Smooth adjustScroll of NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Smooth adjustScroll of NSScrollView


  • Subject: Smooth adjustScroll of NSScrollView
  • From: Nick <email@hidden>
  • Date: Mon, 26 Oct 2015 20:16:48 +0200

Hi
I am developing an application that looks similar to the OS X's
Calendar.app.

One of the nice features it has is the "gravity effect" to the grid lines,
when the user performs vertical scrolling - if you scroll the calendar so
that half-row is clipped by the Clip View, it automatically scrolls
 further until the whole row fits into the view.

Documentation says that we should implement the adjustScroll method of the
document view, where, given a proposed NSRect, we can update it however we
want.
I did implement this method, and it works, but the problem is that now
scrolling is not smooth at all - It just scrolls "line by line", as it does
in Windows (as in I move two fingers on the trackpad - and get lines simply
displayed one after the other). Is this the intended behavior? If it is,
how did Apple developers make their  Calendar "adjustScroll"-ed scrolling
so smooth? Or is there anything wrong in my code i should be looking to fix?

Thank you
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Smooth adjustScroll of NSScrollView
      • From: Nick <email@hidden>
  • Prev by Date: Re: Scripting Bridge Question
  • Next by Date: Re: Updated View Bounds After Orientation Change...
  • Previous by thread: Re: Scripting Bridge Question
  • Next by thread: Re: Smooth adjustScroll of NSScrollView
  • Index(es):
    • Date
    • Thread