• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: contextual menu in NSTableView cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >contextual menu in NSTableView cell (From: stupidFish programming <email@hidden>)

  • Prev by Date: Re: contextual menu in NSTableView cell
  • Next by Date: Re: cocoa-java problem
  • Previous by thread: Re: contextual menu in NSTableView cell
  • Next by thread: NSCell subclass and startTracking
  • Index(es):
    • Date
    • Thread