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

Re: Custom NSSlider


  • Subject: Re: Custom NSSlider
  • From: Stephen Blinkhorn <email@hidden>
  • Date: Thu, 16 Jun 2011 10:42:51 -0600

On 15 Jun 2011, at 19:18, Nick wrote:

Hello
I am wondering if there are any free custom NSSlider controles available
with changed knob and trackbar images?
The ones similar to QuickTime Player and iTunes (for a player application).
Does everyone implement them from scratch by subclassing the cell class?

I make fancy slider controls using a custom 'cell-less' NSControl. Using this approach you can do all your drawing in drawRect and override mouseDown: mouseUp: mouseDragged: etc to behave how you want. To get actions working you'll need to add this method:


+(Class)cellClass {
	return [NSActionCell class];
}

Stephen


Thank you
_______________________________________________

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

_______________________________________________

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: 
 >Custom NSSlider (From: Nick <email@hidden>)

  • Prev by Date: EDMessage, Symlinks & zip files
  • Next by Date: Re: NSDragOperation for operationNotAllowedCursor !!
  • Previous by thread: Re: Custom NSSlider
  • Next by thread: Re: Custom NSSlider
  • Index(es):
    • Date
    • Thread