• 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
Re: NSScroller customization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSScroller customization (From: AstroK Software <email@hidden>)
 >Re: NSScroller customization (From: "I. Savant" <email@hidden>)
 >Re: NSScroller customization (From: AstroK Software <email@hidden>)

  • Prev by Date: Re: NSScroller customization
  • Next by Date: Re: NSScroller customization
  • Previous by thread: Re: NSScroller customization
  • Next by thread: Re: NSScroller customization
  • Index(es):
    • Date
    • Thread