Re: [Q]mouseDown: in TV (was Re: Menu when click on table cell)
Re: [Q]mouseDown: in TV (was Re: Menu when click on table cell)
- Subject: Re: [Q]mouseDown: in TV (was Re: Menu when click on table cell)
- From: "Tony S. Wu" <email@hidden>
- Date: Fri, 27 Sep 2002 20:53:17 -0700
Never mind, I solved my problem.
Further more, I posted a simple sample code on my personal website.
You are welcome to take a look if you are interested.
http://home.earthlink.net/~tonyswu/computer/cocoa_sample.html
Tony S. Wu
email@hidden
"Nope, this world ain't perfect. But at least I know it's not because of
me."
Tony S. Wu at email@hidden wrote:
>
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.
_______________________________________________
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.