Re: Overwriting NSTableHeaderCell to get context menus
Re: Overwriting NSTableHeaderCell to get context menus
- Subject: Re: Overwriting NSTableHeaderCell to get context menus
- From: Philip Dow <email@hidden>
- Date: Thu, 22 Dec 2005 16:10:58 +0100
Create the menu in IB, connect it to your controller as an outlet, in
your controller's awakeFromNib method, call:
[[myTable headerView] setMenu:myHeaderContextMenu];
Easy!
-Phil
On Dec 22, 2005, at 3:09 PM, Martin Wilz wrote:
Hi,
I'd like to implement context menus for activating table column
selection
like iTunes and xCode do.
I tried to subclass NSTableHeaderCells to override the rightMouseDown
and/or mouseDown, but do
not get events there. The header cells are exchanged at NSTableViews
viewDidMoveToSuperview.
As this seems to be the wrong approach, has anybody a better idea ?
Thanks in advance,
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden