timthedevguy / BGHUDAppKit

* BGHUDAPPKIT is no longer under development by me, I hope that the community will keep it alive and going as I no longer have time to dedicate to the project** The missing HUD controls. Please scroll down to read the readme file for an important notice concerning the future of BGHUDAppKit. Note that there are multiple versions available, 10.5+, 10.6.7, and now 10.7. As soon as I learn how I'll make these all one code base if possible.
http://www.binarymethod.com/
312 stars 57 forks source link

BGHUDScrollView scroll arrows "DoubleBoth" #61

Open loretoparisi opened 13 years ago

loretoparisi commented 13 years ago

BGHUDScroller.m is a great piece of code.

Is it possibile to extend it and position the arrows as for AppleScrollBarVariant "DoubleBoth" or to enable double-scroll arrows at both ends of the scroll bars.

I know as for http://code.google.com/p/bghudappkit/issues/detail?id=14 that setting has been depreciated, but is it possibile the customize the drawers methods to obtain it in some way?

Thanks, LP

CocoaBob commented 12 years ago

The positions of arrows is configured in the system preferences and it's a global setting, users can configure that with the following commands: defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBoth

I think you may subclass or do some category codes to override this part in your app. But I'm not sure.

Good luck!

CocoaBob commented 12 years ago

OK, I found the instant method called - (NSScrollArrowPosition)arrowsPosition which is included in the Mac OS SDK, I think you can override it in your subclass.