• 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: MouseUp in OutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MouseUp in OutlineView


  • Subject: Re: MouseUp in OutlineView
  • From: Andreas Mayer <email@hidden>
  • Date: Tue, 3 Apr 2007 19:33:08 +0200


Am 03.04.2007 um 18:58 Uhr schrieb Stefan Heukamp:

I want to get the mouseUp events to start line editing on a single click (like e.g in iTunes). My idea was to start line editing on the mouseUp when the line was selected before, the mouseDown was at most 1 second before the mouseUp and the mouse didn't move in that time (much).

Does anybody have an idea on how to get this working?

On mouseDown: you could start a one second timer. In the method called by the timer check the current mouse state (button down, position). You might want to add some additional code to make sure you don't capture double clicks etc.



Andreas _______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >MouseUp in OutlineView (From: Stefan Heukamp <email@hidden>)

  • Prev by Date: Re: MouseUp in OutlineView
  • Next by Date: Re: MouseUp in OutlineView
  • Previous by thread: Re: MouseUp in OutlineView
  • Next by thread: Rendering an Array Controller contents outside an NSTableView
  • Index(es):
    • Date
    • Thread