Tooltips in an NSBrowser

  • I'm trying to get tooltips for items in my NSBrowser (on Tiger)

    I've implemented -toolTipForCell: in my NSMatrix subclass, and I'm
    sure this is being set correctly, but the tooltip method never seems
    to get called.

    Everything else seems to work correctly. Is this how I should be
    implementing the NSBrowser tooltips, or am I missing something?
  • > I'm trying to get tooltips for items in my NSBrowser (on Tiger)
    >
    > I've implemented -toolTipForCell: in my NSMatrix subclass, and I'm
    > sure this is being set correctly, but the tooltip method never seems
    > to get called.
    >
    > Everything else seems to work correctly. Is this how I should be
    > implementing the NSBrowser tooltips, or am I missing something?

    Unfortunately, NSMatrix, and therefore NSBrowser, doesn’t currently
    support delegate-provided dynamic tooltips like NSTableView does.
    You’ll need to use -[NSMatrix setToolTip:forCell:] for each cell you
    create in the matrix.

    -Ben
previous month november 2007 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    
Go to today