Re: [Pyobjc-dev] Silly Cocoa question
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-06-18 07:48:11
|
Dinu Gherman wrote: > My turn now... ;-) Does anybody know how to set what I suppose to be > an NSTableHeaderCell's background color to the "selected" or "high- > lighted" color (usually a blue gradient) after selecting a column, > like you do in Mail.app, say? > > I'm using an NSTableView, but clicking on the column header cells for > reordering the rows does not change the respective header cell color > to anything blueish... (I tried searching for this in Cocoa-Dev, but > without success...) This work for me: def action_(self, sender): if sender.clickedRow() != -1: return col = sender.tableColumns()[sender.clickedColumn()] sender.setHighlightedTableColumn_(col) (action_ is the target action for the table view, so sender is the table view.) Just |