• 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: NSScroller not changing value when i click up/down arrows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSScroller not changing value when i click up/down arrows (From: email@hidden (Mike Pinkerton))

  • Prev by Date: Re: Carbon IB items missing in Cocoa
  • Next by Date: Making Array Pointers Global
  • Previous by thread: NSScroller not changing value when i click up/down arrows
  • Next by thread: Re: Resource Management ??
  • Index(es):
    • Date
    • Thread