Skip navigation.
 
mlto change background color of a cell in NSMatrix
FROM : Navneet Kumar
DATE : Sat Jan 05 22:49:19 2008

Hi,



I have a NSMatrix of NSTextField cells.



For changing the background color I'm doing this (doesn't work)



[matrixAscii selectCellAtRow:1, column:0];

[matrixAscii setBackgroundColor: [NSColor yellowColor]];



Have tried this also: (doesn't work)



[matrixAscii selectCellAtRow:1, column:0];

[matrixAscii setCellBackgroundColor: [NSColor yellowColor]];



Also NSCell doesn't seem to list any method to do this except highlighting
the cell.

How to do this?





Thanks in advance.



Wishes,

Navneet

Related mailsAuthorDate
No related mails found.