Update: April 11, 2007: Please take a look at the comments section if you are having trouble building the Xcode project(I did test it with Xcode 2.4.1 by the way)
Update: April 6, 2007: I am uploading a pdf file with additional instructions(it assumes steps 1 – 3 below are done, with the exception of building the Xcode project) Get the pdf file here: Directions
Update: April 5, 2007: Fixed a small typo(Step 4 assumes to Step 3 assumes).
I did manage to draw a sine wave from scratch. Actually, it looked so impractical that I ended up generating a more polished sine wave using the SM2DGraphView Cocoa framework
Actually the example code provided by SnowMint Creative Solutions LLC shows one how to draw a sine wave. The trick is using the instructions provided correctly to compile and build the sample code. Here is a way to do it:
- Download the Disk Image(DMG) and extract it
- Follow the “Simple Installation of prebuilt products ” and “Setting up the .palette in Interface Builder” procedures here. Note: Step 3 assumes the framework was put in /Library/Frameworks
- Download my Xcode project I created and run it. You can get it from my website. I use Xcode 2.2.1(I know, I have to upgrade to 2.4.1 soon).
PLEASE BE SURE TO READ THE NOTICE BELOW(REQUIRED BY SNOWMINT CREATIVE SOLUTIONS):
Permission Notice and Disclaimer
Copyright 2002-2003 Snowmint Creative Solutions LLC.
Permission to use, copy, modify and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies, and that both the copyright notice and this permission notice appear in supporting documentation, and that the copyright notice appears in any location where your own copyright notice is viewable by end users, and that the name of Snowmint Creative Solutions LLC not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Snowmint Creative Solutions LLC makes no representations about the suitability of this software for any purpose. It is provided “as is” without express or implied warranty.
Snowmint Creative Solutions LLC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL Snowmint Creative Solutions LLC BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.