On 2015 Mar 20, at 14:24, Dave <[email protected]> wrote:

> how do you check the Scroll Position for being at the end?


I would try comparing
   NSMaxY([[myScrollView documentView] visibleRect])
with
   NSMaxY([[myScrollView documentView] frame])

If that doesn’t work, try NSMinY instead.  In simple cases, it’s usually easier 
to try both ways than to try and remember how flippedness works.

For margin, add a few points to your comparison to weight it on the side of “is 
at the end”.



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to