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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to