Re: Can I do something when double click on a button?
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.