Re: how to correctly set knob/thumb proportion and scroller orientation in NSScroller
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: Rua Haszard Morris <email@hidden>
- Date: Fri, 25 Jul 2008 11:38:31 +1200
Aha, that makes sense, pity it's not in the documentation I was
referring to:
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSScroller_Class/Reference/Reference.html#/
/apple_ref/doc/uid/20000340-1956
I'll fill in the feedback.
(alas, I'll have to have a little compatibility method since we're
still supporting 10.4).
I have to use NSScroller directly because I'm porting existing
(foreign platform XX) view code to work in an NSView, and it manages
scrollbars itself (for good reason).
Anyone have any comments on the orientation issue? I'll mention that
in my documentation feedback...
thanks for the info
Rua HM.
On Jul 24, 2008, at 4:29 PM, Graham Cox wrote:
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