NSScroller drawParts

  • Hello dear list,

    I am trying to implement my subclass of NSScroller and want to use
    customized scroller parts, but the docs are no good. According to the
    docs I need to subclass drawParts

    drawParts
    Caches images for the scroll buttons and knob.

    - (void)drawParts

    Discussion
    It’s invoked only once when the NSScroller is created. You may want
    to override this method if you alter the look of the NSScroller, but
    you should never invoke it directly.

    but this does me no good, for the following reasons:

    a) my drawParts method never gets called. Any idea why?

    b) i have no idea what to do in this method. Are there some default
    variables that i can override to use my own images?

    Google was no help on this and the archives only have one message
    concerning this subject, and that is everything but clear.

    Any help is greatly appreciated.

    Ben _______________________________________________
    Do not post admin requests to the list. They will be ignored.
    Cocoa-dev mailing list      (<Cocoa-dev...>)
    Help/Unsubscribe/Update your Subscription:
    http://lists.apple.com/mailman/options/cocoa-dev/<cocoa...>

    This email sent to <cocoa...>
  • Maybe it's getting called in the init method?

    You could always create your own scroller.  A view, a timer, and mouse
    coordinate checking.  Who know's, it may be quicker than banging your
    head through Apple documentation or waiting for an answer.
previous month september 2006 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Go to today