• 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: How do I implement contextual-menu to NSTableView/NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I implement contextual-menu to NSTableView/NSOutlineView


  • Subject: Re: How do I implement contextual-menu to NSTableView/NSOutlineView
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 29 Jan 2002 20:41:24 +0100

Gore,

>>>>>> Ondra Cada (OC) wrote at Tue, 29 Jan 2002 19:44:53 +0100:
OC> You have to re-implement menuForEvent: of the TableView. My own solution
OC> (which uses a delegate to provide the actual menu for an appropriate
OC> cell) looks like this -- use it freely should you want to:
OC>
OC> @implementation NSTableView (DateSelection)

Oh, if you use it, do rename the category: this name of mine is a badly
chosen one (as a remnant of some older code). I'd name it
OCSMenuForCellCategory or so, but suit yourself ;)
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >How do I implement contextual-menu to NSTableView/NSOutlineView (From: Gore <email@hidden>)

  • Prev by Date: Re: Simple C Question
  • Next by Date: Preopen a drawer
  • Previous by thread: Re: How do I implement contextual-menu to NSTableView/NSOutlineView
  • Next by thread: Re: Universally available widgets
  • Index(es):
    • Date
    • Thread