Re: Menu when click on table cell
Re: Menu when click on table cell
- Subject: Re: Menu when click on table cell
- From: "Tony S. Wu" <email@hidden>
- Date: Thu, 26 Sep 2002 22:41:44 -0700
Now that I know I "have" to subclass NSTableView, I'll go after it.
Thanks a lot.
Tony S. Wu
email@hidden
"Nope, this world ain't perfect. But at least I know it's not because of
me."
Ondra Cada at email@hidden wrote:
>
>
On Thursday, September 26, 2002, at 08:01 , Tony S. Wu wrote:
>
>
> And I know you can easily set a table view's menu in IB.
>
> But question is, the menu appears when you right-click on any table cell.
>
> While I only want certain cells (like in a certain column) to appear the
>
> menu.
>
> Do I need to subclass NSTableView
>
>
Yes.
>
>
> and deal with mouse events?
>
>
No. See
>
>
-(NSMenu*)menuForEvent:(NSEvent*)evt
>
---
>
Ondra Cada
>
OCSoftware: email@hidden http://www.ocs.cz
>
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.