NSTableView - Leopard - Tooltips

  • Under Leopard - how do I suppress the NSTableView tooltips that I do
    not want to see?

    I have carefully crafted my tableViews to display and be edited as
    multi-line cells and do not want nor need those tooltips getting in
    the way. Obviously it must be in the documentation somewhere but I
    cannot find it.

    Keith
  • > Under Leopard - how do I suppress the NSTableView tooltips that I do
    > not want to see?
    >
    > I have carefully crafted my tableViews to display and be edited as
    > multi-line cells and do not want nor need those tooltips getting in
    > the way. Obviously it must be in the documentation somewhere but I
    > cannot find it.

    I had the same problem. This is a new feature in Leopard - these are
    not really tooltips. They just look like tooltips. It's a new feature
    of NSCell and it's called "expansionFrame". NSTextFieldCells have a
    default implementation of the expansion drawing, so they draw expanded
    just like tooltips as soon as there text gets truncated.

    See also:
    http://developer.apple.com/releasenotes/Cocoa/AppKit.html
    "NSCell Automatic Expansion ToolTip Frame".

    Or look for expansionFrameWithFrame: inView: in the documentation.

    Implement it in your cell subclass and return NSZeroRect to disable
    this tooltip like stuff.

    Regards,
    Mani
    --
    http://www.mani.de
    iVolume - Loudness adjustment for iTunes.
    LittleSecrets - The encrypted notepad.
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