Re: mouse click events
Re: mouse click events
- Subject: Re: mouse click events
- From: Pandaa <email@hidden>
- Date: Sat, 15 May 2004 03:18:51 +0200
Macs handle 2-button mice just fine.
The ctrl + click is a standard command, don't reinvent a new one. If
you want to ignore a well established standard interface in favor of an
app specific hack, fine, but don't imagine you are doing good user
interface design.
And if you are only popping up a menu, that's already coded for in
NSView. Simply connect the menu outlet in Interface Builder or call
setMenu: programatically. If your menu is sensitive to the location of
the mouse event in the view, implement - (NSMenu
*)menuForEvent:(NSEvent *)theEvent in your view subclass.
I would like to handle the menu pop-up with a right-click, but Macs
don't come with 2-button mice. And since I like to cater to the lowest
common denominator when it comes to the end user, asking someone to
hit Control while clicking is one step too many. I might just allow
the single click to select, and then see what I can do from there.
David
On May 14, 2004, at 5:33 PM, Pandaa wrote:
There's a standard command for contextual menu commands, ctrl + click
or right click.
. . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . .
. email@hidden . . www.synapticpulse.net .
_______________________________________________
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.