Skip navigation.
 
mlRe: NSMatrix: does it have an delegate method...
FROM : Bertil Holmberg
DATE : Sat Jan 05 22:39:15 2008

I believe you will have to use a borderless buttoncell and use target/
action to catch the clicks.

As for color, that's another problem that I'm fighting with right 
now. There are examples of a colored button on the web but making the 
custom cell work in a matrix seems non-trivial. I would be grateful 
for any tips on this too ;-)

http://danieldickison.com/blog/index.php?/archives/10-Making-Cocoa-
buttons-look-happy.html

Bertil

> I have a NSMatrix of NSTextFieldCell (uneditable "System Font Text" 
> type)
> displayed on window.
>
> I want to change the color of a cell when the user clicks on any cell.
>
> How do I achieve this?
>
> Is there any delegate method that can be implemented, that tells 
> when a cell
> is clicked (selected).
>
> I have gone thru the docs and couldn't find a way.

Related mailsAuthorDate
mlRe: NSMatrix: does it have an delegate method... Bertil Holmberg Jan 5, 22:39
mlRE: NSMatrix: does it have an delegate method... Navneet Kumar Jan 5, 22:50
mlRe: NSMatrix: does it have an delegate method... Keary Suska Jan 6, 21:48