Navigation Home Xhromatogram NetcdfStep Code Snippets Diversions About MT-SE
These bits of code are useful enough that I am posting them here for other people to use. Provided that you preserve the copyright notices in the source code, you may use, modify or distribute this software for any purpose. All warranties are disclaimed; all obligations are denied.
 
The first snippet addresses the problem of too many tabs in a tabbed window. When you have this problem, Apple recommends that you use a popup menu instead of tabs. The category XhrTabViewExtras on the class NSTabView implements this with a minimum of fuss.
 
The second snippet is an object for drawing chart axes. It automatically draws the tick-marks, numbers and units.

vert. divider