Re: NSScroller customization
Re: NSScroller customization
- Subject: Re: NSScroller customization
- From: "I. Savant" <email@hidden>
- Date: Sat, 14 Oct 2006 11:01:32 -0400
Take a look at this:
http://www.koders.com/?
s=NSScrollerKnobSlot&scope=6QX5RPC8U7ZHAXWDXDRE9FRL2H&la=ObjectiveC
That's the header file for NSScroller. Scan down toward the bottom
of the page and note the following method declaration:
- (void)drawKnobSlot;
Not everything is in the standard documentation. Sometimes you
have to dig around in the headers to figure out how things work.
--
I.S.
On Oct 14, 2006, at 10:50 AM, AstroK Software wrote:
Thanks, but actually I have already tried that! I can draw a cutom
know with the -drawKnob: method, but -drawArrow:highlight: is never
called in my subclass, so I can't draw the customized arrows.
Moreover, it seems that there is no method that draws the track of
the scroller...
-- Arthur;
--
AstroK Software
Arthur VIGAN
email@hidden
Le 13 oct. 06 à 20:07, I. Savant a écrit :
Why subclass NSSlider when you want to make a custom
NSScroller? :-) Check out the documentation for NSScroller. You'll
need to override methods such as -drawArrow:highlight:, -
drawKnob:, etc. in order to draw your custom scroller parts.
I don't have any specific examples for you, but the above should
get you going in the right direction.
--
I.S.
On Oct 13, 2006, at 10:11 AM, AstroK Software wrote:
Hi,
I would like to implement a scroller that looks a bit like the
scroller in iTunes 7.0 when you display the album covers. I have
tried to subclass NSSlider, and found out that I can draw the
knob the way I want, but I can't do that for the background of
the scroller. Has anyone already developed a customized scroller?
Is there an example somewhere?
Thanks a lot in advance,
-- Arthur;
--
AstroK Software
Arthur VIGAN
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden