• 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: Overwriting NSTableHeaderCell to get context menus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Overwriting NSTableHeaderCell to get context menus (From: Martin Wilz <email@hidden>)

  • Prev by Date: Re: Cocoa Class for create HUD panel
  • Next by Date: NSLocalizedString not working with Automator project ?
  • Previous by thread: Overwriting NSTableHeaderCell to get context menus
  • Next by thread: Add a custom icon to my saved files
  • Index(es):
    • Date
    • Thread