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

Re: Subclassing NSScroller


  • Subject: Re: Subclassing NSScroller
  • From: Michael Watson <email@hidden>
  • Date: Sun, 13 Apr 2008 18:43:52 -0400

You should find this thread of interest:

http://www.cocoabuilder.com/archive/message/cocoa/2008/1/25/197293


-- m-s

On 13 Apr, 2008, at 15:18, Jonathan Dann wrote:
Hi All,

I'm trying to re-create the iTunes and HUD window scrollbars for my project. I've managed to get a good looking NSScrollerKnob, and NSScrollerKnobSlot using bezier paths and gradients, but now I'm moving on to the arrows and the curved ends of the slot.

To get the knob I've overridden -drawKnob and the slot is done by overriding -drawKnobSlotInRect:highlight:. By the same logic I thought that -drawArrow:highlight: would allow me to start playing with the arrows, but this never gets called. Has anyone any experience with doing this, and changing the width of the whole (vertical) bar itself? Passing arbitrary NSRects to -initWithFrame: doesn't seem to have any effect on the size of the scroll bar.

Thanks for your time,

Jon_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
@bungie.org


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Subclassing NSScroller (From: Jonathan Dann <email@hidden>)

  • Prev by Date: Re: Stale Objective-C object pointer detection
  • Next by Date: Re: KVO strangeness under 10.5
  • Previous by thread: Re: Subclassing NSScroller
  • Next by thread: Re: Cocoa-dev Digest, Vol 5, Issue 600
  • Index(es):
    • Date
    • Thread