• 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: Can I do something when double click on a button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I do something when double click on a button?


  • Subject: Re: Can I do something when double click on a button?
  • From: j o a r <email@hidden>
  • Date: Wed, 10 Apr 2002 01:39:31 +0200

On Wednesday, April 10, 2002, at 12:35 , email@hidden wrote:

I hope I can do different thing when click and double click a button. As Windows have double-click action, why Mac can't do?

Mac can do - BUT - we have User Interface Guidelines that instructs you not to. Users don't expect there to be a double-click action associated with buttons and hence it's not avilable in the standard API. It's a bad idea to surprise your users with unexpected behaviour for standard user interface widgets.
If you still want to listen for a double-click you need to implement this yourself - the instructions can be absorbed from the documentation for NSButton, NSControl, NSView and NSEvent.

j o a r
_______________________________________________
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.

References: 
 >Re: Can I do something when double click on a button? (From: email@hidden)

  • Prev by Date: Re: why Obj-C
  • Next by Date: Re: Can I do something when double click on a button?
  • Previous by thread: Re: Can I do something when double click on a button?
  • Next by thread: Re: Can I do something when double click on a button?
  • Index(es):
    • Date
    • Thread