Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.