to change background color of a cell in NSMatrix

  • 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
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today