I found that doing just that wasn't enough at least if the
NSScrollView comes from a nib. Simply calling setVerticalScroller or
setHorizontalScroller with an instance of my scroller when the
NSScrollView was created via a nib resulted in scrollbars that didn't
draw or behave correctly. Instead I subclassed NSScrollView, in
addition to subclassing NSScroller, and implemented initWithCoder:
method in my NSScrollView subclass as
Note: this code assumes nothing has already replaced NSScroller.
BTW: I also found that drawParts for my scroller subclass never got
called.
Milt
On Dec 17, 2006, at 09:16, I. Savant wrote:
You'll need to subclass NSScroller and override -drawKnobs -
drawParts and -drawArrow:highlight: (along with their supporting
methods) and draw your own stuff.
--
I.S.
On Dec 17, 2006, at 11:32 AM, Lorenzo wrote:
Hi,
I would like to customize the thumbs of a NSScrollView and put e.g.
something like the iTunes' thumbs.
I suppose there should be 3 images to compose a thumb.
How to change those images?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com