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

Attachment: NSBrowserHorizontalScrolling.diff
Description: Binary data

_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to