[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help adding horizontal scrolling to NSBrowser
From: |
Eric Wasylishen |
Subject: |
Help adding horizontal scrolling to NSBrowser |
Date: |
Wed, 10 Feb 2010 14:38:36 -0700 |
Hi,
Yesterday I added support for horizontal scrolling to NSScrollView and X11
-back, which is a really nice improvement for people with trackpads or Apple
mice.
I was trying to add support for this to NSBrowser, but it's a bit trickier. I
need the columns' scroll views to forward -scrollWheel: events with a
horizontal component up to the NSBrowser. I think using a private NSScrollView
subclass for the columns is the only way to do this (for what it's worth, Cocoa
subclasses NSScrollView too).
Here is a patch that more or less works, but it won't interact properly with
nib/gorm saving and loading. In particular, when I save a .nib containing a
NSBrowser in Interface Builder, there are no NSScrollView's saved in the nib.
However, when I save a .nib containing a NSBrowser in GORM, the NSScrollViews
are saved. I guess I could change the class of the NSScrollView to
GSBrowserScrollView when loading the nib, but that seems a bit ugly.
Any ideas how I should tackle this?
Thanks,
Eric
NSBrowserHorizontalScrolling.diff
Description: Binary data
- Help adding horizontal scrolling to NSBrowser,
Eric Wasylishen <=