Category Archives: Custom Views

Regarding the Xcode sample project(Drawing a Sine Wave, Part 2)

Here is another copy of the notice I put up on MacResearch:

————————————————————————————————————————-
(I am not associated in any way with SnowMint Creative Solutions LLC)

I just updated my website and weblog to make sure I included SnowMint’s required permission notice. Any of you that already downloaded my project before the update, please be sure take a look at it here:

http://developer.snowmintcs.com/OpenLicense.html

By cgavini on Mon, 2007-04-02 10:44

I have put a text file containining the contents of the above OpenLicense.html in the zip file containing the Xcode project I created.

————————————————————————————————————————-

Drawing a Sine Wave Part 2

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:

  1. Download the Disk Image(DMG) and extract it
  2. 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
  3. 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.
http://www.snowmintcs.com/

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.

Drawing a Sine Wave

This is a small project I’m working on.

Source code will be up soon(hopefully :p )