Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Freehand drawing in Cocoa

Freehand drawing in Cocoa
Thread Tools
Forum Regular
Join Date: Dec 2002
Status: Offline
Reply With Quote
Feb 24, 2003, 08:39 PM
 
Hey all -

I'm looking for some sample code to show me how to basically freehand draw in Cocoa. Freehand being, draw a straight line by clicking and dragging the mouse, releasing to create the line. A circle, by clicking, dragging and releasing to create the circle.

Prety simple, I think. However, I'm soooo new to this stuff and my books and apple's documentation doesn't lead me too far.

Ideas???

Thanks!
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Feb 24, 2003, 11:50 PM
 
The dev tools come with an example called Sketch. Enjoy.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:49 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2