• 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 trackKnob
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScroller trackKnob


  • Subject: Re: NSScroller trackKnob
  • From: email@hidden
  • Date: Thu, 18 Nov 2010 20:02:34 -0700

Maybe I spoke too soon.

I have subclassed NSScroller and set my scroller to this class.

Then this code:

- (void)awakeFromNib {  [self setContinuous:YES]; }


- (void)trackKnob:(NSEvent *)theEvent { [super trackKnob:theEvent]; NSLog(@"trackKnob"); }

I only get the log output when the mouse button is released ... this is not continuous to me.

Clearly I am missing something.

Any suggestions?

-koko

On Nov 18, 2010, at 7:45 PM, Graham Cox wrote:


On 19/11/2010, at 1:36 PM, email@hidden wrote:

How does one get continuous tracking from an NSScroller?

-trackKnob only gives control when the mouse button is released.

There must be a method as normal scroll view behaviour is continuous scrolling.

So I want to have a scroller, not associated with a scroll view and get continuous call backs as the knob is moved.

Is there a way?


-setContinuous:YES


BUT, don't use a scrollbar when you really want a slider. Users hate that, and the HIG police will be after you as well.


--Graham




_______________________________________________

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: NSScroller trackKnob
      • From: Graham Cox <email@hidden>
References: 
 >Re: NSScroller trackKnob (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSScroller trackKnob
  • Next by Date: Why UIBarButtonItemStyleBordered?
  • Previous by thread: Re: NSScroller trackKnob
  • Next by thread: Re: NSScroller trackKnob
  • Index(es):
    • Date
    • Thread