• 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: double-click in nsview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: double-click in nsview


  • Subject: Re: double-click in nsview
  • From: Fritz Anderson <email@hidden>
  • Date: Tue, 14 Jun 2005 20:49:27 -0500

On 14 Jun 2005, at 8:28 PM, Chase wrote:

do i have to manually determine if a second click was close enough to the preceding click to be considered a double-click?

"Close enough" depends on what you're displaying. You have to use your judgment as to whether two clicks in your view refer to the same thing.


do i use carbon's GetDblTime() for this or is their a coca equivalent?

The -[NSEvent clickCount] message takes care of the timing. If you're in your mouseDown: handler, and clickCount is 2, it's (at least) a double-click.


    -- F

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >double-click in nsview (From: Chase <email@hidden>)

  • Prev by Date: Re: Bindings and NSSegmentedControl
  • Next by Date: Re: Is Apple Supporting RTP Standards?
  • Previous by thread: double-click in nsview
  • Next by thread: Re: FYI: User feedback for LSMinimumSystemVersion [solved]
  • Index(es):
    • Date
    • Thread