Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Picker like custom control for OS X?

Is there a OSS custom control or source code sample for doing something like the iOS Picker controls on Mac OS X (the spinning barrel thingie)?

enter image description here

A bit of research on the web and sites like http://www.cocoacontrols.com didn't turn up anything..

I realize that the paradigm will be awkward for many scenarios however it'll be ideal in terms of screen estate (and design) for the casual app I'm working on.

Any hints appreciated.

like image 302
Ziggy Stardust Avatar asked Nov 04 '22 12:11

Ziggy Stardust


1 Answers

You might want to think about customizing available controls to create a spinning barrel effect. Haven't tried, but it might be overkill. I might think of using buttons with text for the contents (or a table view with custom cells), and/or a scroll view with animation for a scroll event. It might be a useful customization for Mac OS X, without consideration for the fact that UIPickerView was meant for a touch screen.

Edit: This might be a start in the direction you want to be going. -> https://gist.github.com/1558664

like image 133
esh Avatar answered Nov 15 '22 05:11

esh