• 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: NSPopUpButtonCell as NSTableView header problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopUpButtonCell as NSTableView header problem


  • Subject: Re: NSPopUpButtonCell as NSTableView header problem
  • From: "Michael Ash" <email@hidden>
  • Date: Tue, 18 Jul 2006 02:13:20 -0400

On 7/17/06, Ender Wiggins <email@hidden> wrote:
Anyone see anything wrong with adding this popup cell to the header.
When I click on a header cell of my NSTableView, the title font turns
bold, a down arrow appears, but the popup doesn't happen when
selected.

Any help much appreciated.
[snip code]

The code looks good as far as I can tell. You may need to subclass
NSTableHeaderView to get the behavior you want. The documentation
implies but doesn't state (that I can see) that NSTableHeaderView does
*not* pass events to the cells, but handles things itself. You can
subclass it to handle mouseDown: and such by passing the event off to
the header cells and this should make your popups work.

Mike
_______________________________________________
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: 
 >NSPopUpButtonCell as NSTableView header problem (From: "Ender Wiggins" <email@hidden>)

  • Prev by Date: Re: Data Model Design Q: Translation [Resolved]
  • Next by Date: Symmetric Distributed Objects
  • Previous by thread: NSPopUpButtonCell as NSTableView header problem
  • Next by thread: Re: Re: Re: NSPopUpButtonCell as NSTableView header problem
  • Index(es):
    • Date
    • Thread