• 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
Re: making an NSView with scrollbars "inactive"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >making an NSView with scrollbars "inactive" (From: Chris Ryland <email@hidden>)

  • Prev by Date: Re: change NSView background color
  • Next by Date: CGEventKeyboardGetUnicodeString + modifier key
  • Previous by thread: Re: making an NSView with scrollbars "inactive"
  • Next by thread: Bindings, and Core Image
  • Index(es):
    • Date
    • Thread