• 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: Can scroll direction be changed programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can scroll direction be changed programmatically?


  • Subject: Re: Can scroll direction be changed programmatically?
  • From: Steven Degutis <email@hidden>
  • Date: Thu, 09 May 2013 14:13:30 -0500

> What are you actually trying to accomplish?

I often switch between using my rMBP directly, and plugging it into
this giant monitor. When I'm just using the rMBP's trackpad, I want
the scroll direction to be natural. But when I'm plugged in and using
a mouse, I'd prefer it to be unnatural.

So I'm hoping to find some way of programmatically doing this. Then I
can plug my solution into my Zephyros config and bind it to a global
hotkey. This app is super handy.

It would be even better actually if I could find some notification
that's triggered when you plug into or unplug from an external
monitor, then it would automatically toggle this for me.

I found out that it's the global defaults key
"com.apple.swipescrolldirection", but I can't figure out how to force
every open app to notice the new value when I set it. Seems like I'd
probably have to kill "loginwindow" or something to get the OS to
register that I changed this. And that seems like a dumb idea.

-Steven
_______________________________________________

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: Can scroll direction be changed programmatically?
      • From: Kyle Sluder <email@hidden>
References: 
 >Can scroll direction be changed programmatically? (From: Steven Degutis <email@hidden>)
 >Re: Can scroll direction be changed programmatically? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Can scroll direction be changed programmatically?
  • Next by Date: Re: Does initWithHTML:dataUsingEncoding:documentAttributes: run an event loop?
  • Previous by thread: Re: Can scroll direction be changed programmatically?
  • Next by thread: Re: Can scroll direction be changed programmatically?
  • Index(es):
    • Date
    • Thread