• 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
NSScroller graphical lag/glitches
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSScroller graphical lag/glitches


  • Subject: NSScroller graphical lag/glitches
  • From: PCWiz <email@hidden>
  • Date: Thu, 22 Oct 2009 08:03:17 -0600

Hi,

I have the following NSScroller subclass that creates a scroll bar with a rounded white knob and no arrows/slot (background):

    @implementation IGScrollerVertical

- (void)drawKnob
{
NSRect knobRect = [self rectForPart:NSScrollerKnob];
NSRect newRect = NSMakeRect(knobRect.origin.x, knobRect.origin.y, knobRect.size.width - 4, knobRect.size.height);
NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:newRect xRadius:7 yRadius:7];
[[NSColor whiteColor] set];
[path fill];
}


    - (void)drawArrow:(NSScrollerArrow)arrow highlightPart:(int)flag
    {
    	// We don't want arrows
    }

    - (void)drawKnobSlotInRect:(NSRect)rect highlight:(BOOL)highlight
    {
    	// Don't want a knob background
    }
    @end

This all works fine, except there is a noticable lag when I use the scroller. See this video:

http://twitvid.com/70E7C

I'm confused as to what I'm doing wrong, any suggestions?
_______________________________________________

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 graphical lag/glitches
      • From: Dave Keck <email@hidden>
  • Prev by Date: NSTextField not getting mouseDown
  • Next by Date: Re: Core data design related question
  • Previous by thread: Re: NSTextField not getting mouseDown
  • Next by thread: Re: NSScroller graphical lag/glitches
  • Index(es):
    • Date
    • Thread