Tooltips in NSBrowser
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
user
Data: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.