You could do what Apple's UIKit engineers do: implement your own subclass of UIView, with your own drawing and hit testing. Then you could put your radio in a wooden cabinet, maybe model some of the warm distortion that vacuum tubes yield Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www.warplife.com/mdc/
Available for Software Development in the Portland, Oregon Metropolitan Area. On Thu, May 7, 2015 at 1:36 PM, David Rowland <rowla...@sbcglobal.net> wrote: > In iOS I have used the "transform" property of UIView to rotate a slider. > > David > > >> On May 7, 2015, at 1:11 PM, Jerry Krinock <je...@ieee.org> wrote: >> >> I would like to subclass NSSlider to make it work like the "volume control" >> on a mid 19th-century radio receiver. That is, I want the minimum value to >> be at 7 o'clock, and the maximum value to be at 5 o'clock. There two issues >> in using the circular version of NSSlider for this: >> >> 1. There is no dead zone between the minimum and maximum settings. (What >> were they thinking?) >> 2. The min and max settings are at the top, 12 o'clock. >> >> I've solved the first issue by overriding -closestTickMarkValueToValue:. >> (Oh, I'm also using "detents", allowsTickMarkValuesOnly = YES). >> >> I think I could solve the second issue with more complicated code in >> -closestTickMarkValueToValue:, but I'd also need to remap the values somehow >> and this might be a mess. So I was wondering if instead there was an easy >> way to rotate the control on the screen by, say 165 degrees. >> >> Am I correct that the answer is "no"? Keep in mind that we're not just >> drawing here; this is a control; we need mouse clicks, etc. >> >> Indeed, I'm not much of a drawing and graphics guy. >> _______________________________________________ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >> 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: >> https://lists.apple.com/mailman/options/cocoa-dev/rowlandd%40sbcglobal.net >> >> This email sent to rowla...@sbcglobal.net > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/mdcrawford%40gmail.com > > This email sent to mdcrawf...@gmail.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com