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

Handling a mouse event


  • Subject: Handling a mouse event
  • From: zauhar <email@hidden>
  • Date: Tue, 28 May 2002 10:40:14 -0400
  • Scubber-version: 1.7 (portal)

After digging through the docs for an hour, I am sufficiently aggravated to risk a flame over a trivial question -

How do I get the current system time in Cocoa?

I want to copy functionality in an old Mac OS application for handing mouse events. The function I used timed how long the user held down the mouse button - less than a specified interval and the event was treated as a single click, and signaled a possible object selection - longer than that interval and the mouse motion was tracked to control interactive rotation. The use of NSTimer would seem to introduce unneeded complexities for this simple task.

I would prefer to use methods in NSEvent to handle this subtlety, but at this point my reading of the docs has not enlightened me as to how to do this. I would appreciate any advice on either of these approaches to handling the problem.

Thanks in advance,

Randy

Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104

Phone: (215)596-8691
FAX: (215)596-8543
E-mail: email@hidden
Web: http://tonga.usip.edu/zauhar

Thought for the ages:

"If you have conceptions of things that you can have no conception of,
then the conception and the thing appear to co-incide." -- C.G. Jung

Thought for the new millennium:

"Nothing is gooder than watching cartoons." -- Catherine Zauhar, age 5
_______________________________________________
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.

  • Follow-Ups:
    • Re: Handling a mouse event
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Shearing with NSAffineTransform
  • Next by Date: Absolute paths
  • Previous by thread: Re: Shearing with NSAffineTransform
  • Next by thread: Re: Handling a mouse event
  • Index(es):
    • Date
    • Thread