• 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: Rotate a standard Cocoa control?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotate a standard Cocoa control?


  • Subject: Re: Rotate a standard Cocoa control?
  • From: email@hidden
  • Date: Mon, 11 May 2015 17:15:27 +0800

You've missed something.
NSScrollView coordinates the scrollers and the clip view total experience.

NSView is what implements the NSResponder method.
It still receives the same events that are sent from scrolling.

All the same things apply about interpreting the events that pass in to the scrollWheel: method.
It is your gateway to handle scrolling input in a view.



Sent from my iPhone

> On 2015/05/11, at 17:01, Graham Cox <email@hidden> wrote:
>
>
>> 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


  • Follow-Ups:
    • Re: Rotate a standard Cocoa control?
      • From: Graham Cox <email@hidden>
References: 
 >Rotate a standard Cocoa control? (From: Jerry Krinock <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Robert Martin <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Jerry Krinock <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Steve Mills <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Steve Mills <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)
 >Re: Rotate a standard Cocoa control? (From: email@hidden)
 >Re: Rotate a standard Cocoa control? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Rotate a standard Cocoa control?
  • Next by Date: Re: Rotate a standard Cocoa control?
  • Previous by thread: Re: Rotate a standard Cocoa control?
  • Next by thread: Re: Rotate a standard Cocoa control?
  • Index(es):
    • Date
    • Thread