• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Tooltips in NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tooltips in NSBrowser


  • Subject: Tooltips in NSBrowser
  • From: Terry Smyth <email@hidden>
  • Date: Fri, 16 Jan 2004 17:48:47 +0000

Does anyone know if tooltips work with NSBrowser in the same way they
do with table views and outline views?

For table views, I use [addToolTipRect:frame owner:anOwner
userData:nil] where frame comes from the table view method
frameOfCellAtColumn. The table view then keeps track of the frame as
the table scrolls, so that the tooltip remains attached to its item.

NSBrowser doesn't have such a convenient way to get the frame, and I
have tried getting it from the browser's column matrix but this didn't
work (the tool tip didn't appear). If I calculate the rect (ensuring it
falls within the NSBrowser column frame) then of course the tool tip is
displayed, but it doesn't move as the browser scrolls. I could keep
digging, but I'm keen to know if it can be done, or is this unsupported
in NSBrowser.

Any advice much appreciated.

Terry Smyth
Software Generation Limited
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Bundles work differently depending on application launch path?
  • Next by Date: Re: NSArrayController Funkyness
  • Previous by thread: Re: NSBorderlessWindowMask shadows
  • Next by thread: InterfaceBuilder: a nice touch
  • Index(es):
    • Date
    • Thread