Re: making an NSView with scrollbars "inactive"
Re: making an NSView with scrollbars "inactive"
- Subject: Re: making an NSView with scrollbars "inactive"
- From: Jerry Krinock <email@hidden>
- Date: Sat, 14 Apr 2007 20:46:24 -0700
On 2007 Apr, 13, at 15:11, Chris Ryland wrote:
Is there any programmatic way to tell an NSView (in this case, a
WebView) to make any contained scrollbars "inactive looking?"
Something must be happening behind the scenes when an app becomes
non-frontmost, for the scrollbars to take on their inactive look.
NSScroller is a subclass of NSControl, so if you can get a reference
to your scroller by hook or by crook, it should respond to -
setEnabled:NO.
If that doesn't work, maybe try -setControlTint. You've got four
color choices.
I've looked at those four constants but never tried them. The
documentation is pure white gaussian noise. For example,
NSClearControlTint is helpfully explained as "Clear Control Tint".
So, if you try one and find a color you like, be sure to scroll down
to the bottom of the documentation page and send whoever maintains
that documentation a big THANK YOU!! (It will be their second kudo
for this week, since I needed some entertainment tonight, I just did
so).
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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