• 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: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to correctly set knob/thumb proportion and scroller orientation in NSScroller


  • Subject: Re: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
  • From: Graham Cox <email@hidden>
  • Date: Thu, 24 Jul 2008 14:29:40 +1000

There is, in 10.5, setKnobProportion: to make up for the deprecated method.

Is there some reason why you just don't embed a view inside an NSScrollView? It's much easier than trying to fiddle about with scrollbars yourself.


Graham




On 24 Jul 2008, at 2:15 pm, Rua Haszard Morris wrote:

I'm implementing a scrollable pane and have come across to slightly weird issues with NSScroller, leading to me wondering whether I'm going about this the wrong way...

1. The thumb proportion can only be set by setFloatValue:knobProportion: method which is deprecated in 10.5. Is there any supported, non deprecated way to achieve this?

2. There is no direct way to set the orientation of the scroller - as far as I know, I have to specify an indicative frame rectangle in initWithFrame:, and NSScroller infers whether it is vertical or horizontal from that. I'm not aware of a way to specify orientation other than init.

At the moment things are working well, but I'd be interested to hear if I'm missing the point here or if there are more appropriate ways to achieve the above.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
      • From: Rua Haszard Morris <email@hidden>
    • Re: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
      • From: "San Saeteurn" <email@hidden>
References: 
 >how to correctly set knob/thumb proportion and scroller orientation in NSScroller (From: Rua Haszard Morris <email@hidden>)

  • Prev by Date: Is checking -count worth it?
  • Next by Date: Re: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
  • Previous by thread: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
  • Next by thread: Re: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
  • Index(es):
    • Date
    • Thread