Re: NSScroller not changing value when i click up/down arrows
Re: NSScroller not changing value when i click up/down arrows
- Subject: Re: NSScroller not changing value when i click up/down arrows
- From: Aki Inoue <email@hidden>
- Date: Thu, 4 Apr 2002 16:39:04 -0800
Mike,
NSScroller itself doesn't know anything about a line or page. It's the
action message receiver's responsibility (in normal cases, NSScrollView
does that) to update the value for scrollers. You can query the hit
part in your action message via -hitPart method.
So, unless the hit part is either NSScrollerKnob or NSScrollerKnobSlot,
the action receiver calculates the increment/decrement, translate the
view's coordinate, then, update the float value for the originating
scroller.
Aki
P.S. Or your intention here is to provide UI control that shows
numerical value in scale, NSSlider is the right one.
On 2002.04.04, at 07:49, Mike Pinkerton wrote:
I've got a standalone NSScroller (separate from a NSScrollView) that's
enabled and as far as i can tell correctly set up. However, when I
click on any of the arrows (up or down), the value doesn't change and
the thumb doesn't move. If I drag the thumb, the value changes.
I installed my own target/action and when I'm holding the mouse down on
the up/down arrows, my action method gets called repeatedly for as long
as the mouse is down, but the value never changes.
I must be missing something obvious here. Any ideas? (and please don't
say 'just use a NSScrollView'.)
-- Mike Pinkerton
Mac Browser Weenie
email@hidden http://people.netscape.com/pinkerton
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.