Re: mouse click events
Re: mouse click events
- Subject: Re: mouse click events
- From: "David Piasecki" <email@hidden>
- Date: Mon, 17 May 2004 08:18:47 -0700
Yes, but Mac laptops don't have two-button mice unless you plug one in,
so that doesn't work in this case. I know that ctrl-click is a standard
command. I use it all the time, but as I suggested before,
keyboard-click combinations are simply not possible for my application.
I'm not "imagining" I'm doing good UI design. I'm trying to deal with
the requirements given to me in the best way possible. I realize I'm
just at the beginning of the learning curve in this area, and I write
to this list to learn as much as I can.
Thanks for the tip on setMenu.
David
On May 14, 2004, at 6:18 PM, Pandaa wrote:
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.