[Top]

SMDoubleSlider Overview


Files

The SMDoubleSlider code consists of an Xcode project file, an older Project Builder project file, the source code itself, this documentation, and pre-built versions of an Interface Builder palette and sample application. The source code is broken into three parts, but is all included in the Xcode/Project Builder projects.

  1. The source code for the SMDoubleSlider classes itself.
  2. The source code to an Interface Builder palette and inspector that makes it easy to include a double slider in a nib file.
  3. The source to a sample application that shows off the capabilities of the double slider.

The SMDoubleSlider code and the related files in this distribution are open source. They are not public domain; they are copyright © 2003-2008 Snowmint Creative Solutions LLC. They are governed by an open source license, which is intended to allow others reasonable freedom in using and modifying the sources, while allowing Snowmint Creative Solutions LLC to retain some control over the project. If you intend to use or modify the source code for this project, you must read and follow the license. The license should be included in this distribution; if not, you can find it at <http://developer.snowmintcs.com/OpenLicense.html>.

Purpose

This framework provides both NSSlider and NSSliderCell subclasses which have two knobs instead of one. The user can slide either of the knobs along, with the limitation that the lower knob is always less than the higher knob. The SMDoubleSlider class also supports tabbing through both knobs if keyboard access is turned on.

Note: The SMDoubleSliderCell does not handle the tabbing through both knobs. Therefore, if a double slider is placed in a matrix or table column, the user tabbing through will only be able to adjust one of the knobs. This seems to be a general limitation of the NSCell class construction.


Getting Started - installation and building the code


© 2003-2008 Snowmint Creative Solutions LLC (Last Updated 2008-01-24)