Re: Rotate a standard Cocoa control?
Re: Rotate a standard Cocoa control?
- Subject: Re: Rotate a standard Cocoa control?
- From: Graham Cox <email@hidden>
- Date: Mon, 11 May 2015 19:01:51 +1000
> On 11 May 2015, at 2:27 pm, email@hidden wrote:
>
> There was a WWDC video on Responsive Scrolling.
If that’s the one from WWDC 2013 that talks about NSScrollViewDidLiveScrollNotification and friends, I don’t think it’s relevant to this situation.
If you have a view that’s the content of a document’s scrollview (or any scrollview), then for responsive scrolling you shouldn’t override -scrollWheel:, because the way this is processed by NSScrollVIew is rather different and complex, and any override of your own will disable responsive scrolling. However, that’s not the situation here - I just want to use the scrollwheel to adjust a control’s value. How it’s adjusted to give the most usable behaviour depends on what sort of input device the user is using - a two-finger scroll swipe on a trackpad is a very different kind of input than a clicky scroll wheel on a mouse. Sadly there’s no way in -scrollWheel: to tell them apart. Unless I’ve missed something.
—Graham
_______________________________________________
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