Re: NSPopUpButtonCell as NSTableView header problem
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