Re: Menu when click on table cell
Re: Menu when click on table cell
- Subject: Re: Menu when click on table cell
- From: Steve Ivy <email@hidden>
- Date: Thu, 26 Sep 2002 12:31:07 -0700
On Thursday, September 26, 2002, at 11:01 AM, Tony S. Wu wrote:
While I only want certain cells (like in a certain column) to appear
the
menu.
I believe you can set the menu for a particular cell, but you'll
probably have to do it programmatically.
Hm. You *can* set it for any NSCell ([NSCell setMenu:]) but tableView
only has one cell. Wht you may need to do is create a custom NSCell
subclass for you tableview, then in that subclass override menu: to do
a check first that the cell should or should not have a menu.
Just guessing, hope someone else has a better idea - this seems kludgy.
Do I need to subclass NSTableView and deal with mouse events?
--
Steve Ivy -
http://www.redmonk.net - email@hidden
"This is my world, and I am, the World Leader Pretend..."
--
_______________________________________________
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.