Re: Unexpected mouse-handling behaviour
Re: Unexpected mouse-handling behaviour
- Subject: Re: Unexpected mouse-handling behaviour
- From: Andy Lee <email@hidden>
- Date: Mon, 23 Feb 2009 09:25:45 -0500
See NSView's hitTest: method. I believe you'll also have to use one
or more of NSView's convertPoint... methods.
Stepping back a bit, if you intend to significantly grow your app you
should give it an MVC architecture -- have a model class that
represents the structure and content of your document, and have the
views interact with one or more controller objects to stay in sync
with the model. If this is just a quick exercise to learn about
drawing, you can postpone MVC for a later exercise, but even then it's
worth thinking about now.
--Andy
On Feb 23, 2009, at 8:45 AM, Manuel Meyer wrote:
Hmm, the endPoint and startingPoint are just helpers right now to
visualize the mouse interaction. I haven't done any coding on the
vertices between two Nodes yet.
I wanted to connect the Nodes without using the superview, but maybe
I have to? What is the best way to find out, what View(s) are
located at a certain point?
If u want to have a look: here is my coplete project code
http://gonzo.uni-weimar.de/~meyer4/SlipMaster.zip (175KB)
aglee
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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