vertically aligning text in NSTableView row

Discussion in 'Mac Programming' started by Monaj, Jan 20, 2010.

  1. Monaj macrumors regular

    Joined:
    May 24, 2009
    #1
    Hi all,

    I have a small problem with NSTableView. When I am increasing height of a row in table, the text in it is aligned at top of row but I want to align it vertically centered!

    Can anyone suggest me any way to do it ??

    Thanks,

    Monaj
     
  2. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #2
    You could either use a subclass for the table column's cell or figure out a way to use a delegate method such as -tableView:willDisplayCell:forTableColumn:row:
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3

Share This Page