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

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


  • Subject: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
  • From: Rua Haszard Morris <email@hidden>
  • Date: Thu, 24 Jul 2008 16:15:42 +1200

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.

Thanks
Rua HM.
_______________________________________________

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: Graham Cox <email@hidden>
  • Prev by Date: Re: Daemon Advice?
  • Next by Date: Re: master-detail: binding array controller to the attribute of selection of master array controller
  • Previous by thread: NSTextView displaying a square instead of carriage return
  • Next by thread: Re: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
  • Index(es):
    • Date
    • Thread