• 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
Unexpected mouse-handling behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unexpected mouse-handling behaviour


  • Subject: Unexpected mouse-handling behaviour
  • From: Manuel Meyer <email@hidden>
  • Date: Sun, 22 Feb 2009 15:21:45 +0100

Hey,

I just started to learn obj-c/Cocoa. As my first application I am writing a networkgraph-editor. Each node got it own view.
To connect to nodes, I thought of using rightMouseDown, rightMouseDragged and rightMouseUp.
So the NodeView, where a rightMouseDown event is triggered will be the starting-node for the connection and those NodeView, where the rightMouseUp event is triggered, will be the end-node. rightMouseDragged is used to show a line as visual feedback.


But I got another behaviour: the rightMouseUp-event will allways be triggered on the first node, no matter if the mouse was moved to another or to no NodeView.

What is my mistake?

Here is my code: http://paste.lisp.org/display/75958
Thanks for your help,

Manuel
_______________________________________________

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


  • Follow-Ups:
    • Re: Unexpected mouse-handling behaviour
      • From: Andy Lee <email@hidden>
  • Prev by Date: Core Data: Multiple entities in same Table View
  • Next by Date: Re: How to get strings like <CSSDictionary: 0x126a70> for all objects
  • Previous by thread: Core Data: Multiple entities in same Table View
  • Next by thread: Re: Unexpected mouse-handling behaviour
  • Index(es):
    • Date
    • Thread