Re: How do I implement contextual-menu to NSTableView/NSOutlineView
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