Re: Drawing with NSBezierPath
Re: Drawing with NSBezierPath
- Subject: Re: Drawing with NSBezierPath
- From: "I. Savant" <email@hidden>
- Date: Wed, 18 Apr 2007 15:00:53 -0400
On 4/18/07, Ethan <email@hidden> wrote:
I wanna draw some basic shapes, let's say circles and lines in a customer view with cocoa application (not document-based application), I believe this step can be easily finished with using NSBezierPath.
Well, yes, that's sort of what it's for. :-)
Next, I'm seeking the possibilities to see if I can move the objects I've created in the view, in other words, I should be able to reposition them by using mouse dragging, I think I can catch the event of the mouse action, but I've no idea about the repositioning those paths created.
Last, I also need to combine(draw beside) some additional text(index/comment) to each path I created, so that when I drag the object, the text content can move together as well. I don't know if I can do this.
Here's the skinny. Pay attention, it's rather brief:
1 - Navigate to /Developer/Examples/AppKit/Sketch and open the Sketch project.
2 - Delve in and figure out how it all works (it does pretty much
everything you're looking for).
3 - ???
4 - Profit!
;-)
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden