• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unexpected mouse-handling behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Unexpected mouse-handling behaviour (From: Manuel Meyer <email@hidden>)
 >Re: Unexpected mouse-handling behaviour (From: Andy Lee <email@hidden>)
 >Re: Unexpected mouse-handling behaviour (From: Manuel Meyer <email@hidden>)

  • Prev by Date: Re: [Q] Re: NSPersistentStore -addPersistentStoreWithType
  • Next by Date: RE: Populating a new SQLite Core Data store with default data
  • Previous by thread: Re: Unexpected mouse-handling behaviour
  • Next by thread: Using a flip transition to a different view
  • Index(es):
    • Date
    • Thread