how to correctly set knob/thumb proportion and scroller orientation in NSScroller
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