[Q]mouseDown: in TV (was Re: Menu when click on table cell)
[Q]mouseDown: in TV (was Re: Menu when click on table cell)
- Subject: [Q]mouseDown: in TV (was Re: Menu when click on table cell)
- From: "Tony S. Wu" <email@hidden>
- Date: Fri, 27 Sep 2002 09:29:45 -0700
Ok, I subclassed NSTableView and override two methods, mouseDown: and
rightMoustDown: so that the menu will appear when both mouse button are
pressed.
Also, I use mouse:inRect: to limit the menu to appear when certain column is
clicked.
But I have one more problem.
That is, the menu appear even if you click on the empty area.
Like, area with no rows.
I tried using clickedRow:, but it returned -1.
Is there a way to fix this?
Thanks.
Tony S. Wu
email@hidden
"Nope, this world ain't perfect. But at least I know it's not because of
me."
_______________________________________________
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.