• 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
NSEvent mouse events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSEvent mouse events


  • Subject: NSEvent mouse events
  • From: Greg Hulands <email@hidden>
  • Date: Wed, 9 Oct 2002 12:19:17 +1000

Hi,
I have a custom view that handles the mouse down event. I am trying to
get it so that if the mouse is down for 2 seconds, than it will perform
an action.

I wait for these mouse events
nextEventMatchingMask:(NSLeftMouseDownMask | NSLeftMouseUpMask |
NSLeftMouseDraggedMask | NSOtherMouseUpMask | NSOtherMouseDownMask),
but the problem seems to be that when I hold down the mouse, without
moving the mouse at all, it does not generate any more events. As soon
as i move the cursor slightly, it then fires the action. Is there a way
of getting a continuous stream of events while the mouse is down? Or is
there a better solution to this problem?

Any help is greatly appreciated,
Regards,
Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Can I get AppKit to draw this faster ?
  • Next by Date: Re: cString, (deprecated), lossyCString, fileSystemRepresentation, %@
  • Previous by thread: Re: cString, (deprecated), lossyCString, fileSystemRepresentation, %@
  • Next by thread: Re: NSEvent mouse events
  • Index(es):
    • Date
    • Thread