NSTableView pre-selected row view problem

Discussion in 'Mac Programming' started by Eraserhead, Feb 19, 2010.

  1. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #1
    I have an NSTableView where I'm pre-selecting a row before it is displayed, however although the row is selected in the table it isn't actually displayed to the user. How do you do that?

    Thanks
     
  2. macrumors regular

    Joined:
    Apr 8, 2009
    #2
    How do you mean it's selected but not displayed to the user? Do you mean the table view returns the correct selectedRow but it isn't highlighted, or is it highlighted but the user has to scroll down to see it? If it's the latter case you can use scrollRowToVisible: with the selectedRow. Otherwise I don't know what the issue would be unless I know how and where you're doing the preselecting.
     
  3. thread starter macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #3
    No.

    Yes.

    Awesome, that works perfectly.
     

Share This Page