Re: NSTableView - Detecting when user has finished scrolling
Re: NSTableView - Detecting when user has finished scrolling
- Subject: Re: NSTableView - Detecting when user has finished scrolling
- From: Peter Hudson <email@hidden>
- Date: Wed, 30 Sep 2015 13:20:15 +0100
Many thanks for these ideas.
As the user scrolls one of the table views, the system does not render all the details in the rows correctly.
The most obvious one :- I draw my own lines between rows - inserting separator lines where appropriate.
Hence, I override drawRect. The process in here to calculate the placement of lines is too long - hence the system, on occasions, will not draw them.
So, what I want to do is watch for when the user has finished scrolling and then do a display on the tableview - which works fine.
Thanks for your suggestion - I’ll check them out.
Peter
> On 30 Sep 2015, at 12:19, email@hidden wrote:
>
> Check the NSScrollView notifications.
> However you could try to observe changes to the NSClipView bounds.
> You could also observe scroll events and so forth.
> But ultimately you will run into semantics. Resting touches, momentum phases, some slight ambiguity on whether the user feels done scrolling vs mentally figuring out if they have scrolled near where the want to go quickly and might stop and slow down and back up a bit.
>
> Question to you is, what are you trying to accomplish ?
>
> Sent from my iPhone
>
>> On Sep 30, 2015, at 7:45 PM, Peter Hudson <email@hidden> wrote:
>>
>> I would like to know when the user has finished scrolling one of my table views.
>> I can’t see any obvious API to do it. ( I’ve checked the scrollers, views etc which are part of an NSTableView)
>>
>> All suggestions gratefully received.
>>
>> Peter
>> _______________________________________________
>>
>> 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
_______________________________________________
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