• 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
Horizontal-only scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Horizontal-only scrolling


  • Subject: Horizontal-only scrolling
  • From: Petteri Kamppuri <email@hidden>
  • Date: Tue, 20 Nov 2007 17:23:08 +0200

Hi!

I have a view that's inside an NSScrollView. My view isn't very tall, and can easily fit vertically in the scroll view. However, the view can be very wide, that's why it's in the scroll view in the first place.

What I'd like is that normal scroll wheel events would cause the scroll view to scroll horizontally (the only way it can scroll). Currently the user has to hold down the shift key to achieve horizontal scrolling (or use Mighty Mouse or something, I haven't tested, I don't like or use the Mighty Mouse :).

Does anyone know an elegant solution to either for converting verical scroll events to horizontal or otherwise force the scroll view to always scroll horizontally, even when istructed to scroll vertically?

-scrollWheel: would be nice, if I could convert the NSEvent to horizontal scrolling from vertical scrolling, but NSEvent API doesn't seem to make that possible (maybe by subclassing NSEvent?).


Thanks for any help!


Regargs,

Petteri Kamppuri


_______________________________________________

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: Horizontal-only scrolling
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Help reading crash log without third party code
  • Next by Date: [NSTableView] option + click change of behavior between Tiger and Leopard
  • Previous by thread: Re: Cookies-woes
  • Next by thread: Re: Horizontal-only scrolling
  • Index(es):
    • Date
    • Thread