This is what needs to be done programmatically (as far as I know). You can create a slider in the interface builder and make it vertical and have access to it and all that. You can also create NSMenuItem and NSMenu in Interface Builder, but you need to embed the slider in the menu item through code. This cannot be done in IB.
However, from there it is pretty simple:
NSSlider * slider = ...;
Remember to connect the target / action slider engine to the one who needs to handle the moving one.
source share