The SM2DGraphView framework consists of an Xcode 2.4 project, and a much older Project Builder project file, the source code itself, an Xcode 3 project and source code for an Interface Builder 3 plugin, this documentation, and pre-built versions of the framework, Interface Builder 2.x palette, and sample application.
The easiest way to install the SM2DGraphView framework for use in development is to copy the pre-built files to appropriate locations on your hard drive. Use the files in either the "Min 10.4" folder if you are targeting your apps to run on Mac OS 10.4 or later, or the "Min 10.2" or "Min 10.1" folder if you're developing to target an older system.
SM2DGraphView.framework folder into your ~/Library/Frameworks folder, or your /Library/Frameworks folder. Placing the framework into your home directory library makes it available only to you; placing it in your main /Library/Frameworks folder makes it available to any user who logs in to your computer.SM2DGraphView.palette bundle into your /Developer/Palettes folder. If there is no Palettes folder in your /Developer folder, simply create that folder first, then copy the SM2DGraphView.palette file into it.Copy the contents of the distribution to your hard drive in a location where you have write access. You can place it in your ~/Documents folder, in your /Developer folder, or elsewhere. After you build the framework (see below) you may need to copy some of the files to other locations on your computer.
The SM2DGraphView distribution includes a palette that can be used in Interface Builder 2.x to allow easy addition of graph view and pie chart view objects to your nib files. Once you've installed the SM2DGraphView.palette file onto your hard drive, either by following the simple installation instructions above or by building the palette from the source code, you can add the palette to Interface Builder. Once this is done, you shouldn't need to do it again unless you move the SM2DGraphView.palette file on your hard drive.
Later versions of Interface Builder 2.x automatically loaded palettes that are placed in the /Developer/Palettes/ folder. If the palette doesn't load automatically, follow these directions:
Tools menu, choose Palette Preferences..., or you can use the Preferences... menu command and choose the Palette preferences.Add... button.SM2DGraphView.palette file and select it.That's it! The graph palette icon should show up in the palettes window. You can drag a graph or pie chart object from that palette into your own nib files. You can hook up your data source and delegate objects in Interface Builder, just like with using an NSTableView or NSBrowser object. When you show the attributes of a selected graph or pie chart object in Interface Builder, you'll see an inspector that lets you change most of the settings for the view. You can also change any of these settings at run time in your own code.
You must have the source code installed in a place where you have write access. Open the SM2DGraphView.xcodeproj file in Xcode, or the SM2DGraphView.lproj file in Project Builder. There are three targets in the project; you can build any of the three targets.
~/Library/Frameworks folder.
There is a folder with it's own source code for the Interface Builder 3 plugin. You should open the Xcode project found there and build it FIRST. Then follow the directions above to build the framework. The IB3 plugin will be copied into the framework that you build with the main SM2DGraphView.xcodeproj file.
The Xcode project has four builds styles explained below.