• 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
Fabricating a mouse down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fabricating a mouse down


  • Subject: Fabricating a mouse down
  • From: email@hidden
  • Date: Tue, 25 Nov 2003 21:19:29 -0500

To create a mouse down event I have the following code.

NSEvent* event = [NSEvent mouseEventWithType: NSLeftMouseDown
location: NSMakePoint(blahx, blahy)
modifierFlags: nil
timestamp: 0
windowNumber: [window windowNumber]
context: [NSGraphicsContext
graphicsContextWithWindow: window]
eventNumber: -1
clickCount: 1
pressure: 1.0];

How do I get the timestamp and the event number? Thanks.
_______________________________________________
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: tabbing between controls
  • Next by Date: Re: Need a dictionary of words in English
  • Previous by thread: Re: tabbing between controls
  • Next by thread: how to read api
  • Index(es):
    • Date
    • Thread