Re: contextual menu in NSTableView cell
Re: contextual menu in NSTableView cell
- Subject: Re: contextual menu in NSTableView cell
- From: j o a r <email@hidden>
- Date: Fri, 17 Jan 2003 23:37:38 +0100
Try to use the "rowAtPoint:" and "columnAtPoint:" methods in the
"menuForEvent:" that your table view subclass receives when
right-clicked. Return the menu corresponding to the hit cell.
j o a r
On Friday, Jan 17, 2003, at 23:05 Europe/Stockholm, stupidFish
programming wrote:
i want to have a contextual menu to pop-up when ctrl-clicked on a
table's given cell.
i tried to do the following:
- (void)tableView:(NSTableView *)view willDisplayCell:(id)cell
forTableColumn:(NSTableColumn *)col row:(int)row
{
[cell setMenu:theMenu];
}
but it doesn't give me a the menu. am I completely in the wrong
direction?
_______________________________________________
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.