Re: Tool tips in NSTableView
Re: Tool tips in NSTableView
- Subject: Re: Tool tips in NSTableView
- From: Max Horn <email@hidden>
- Date: Wed, 23 May 2001 20:35:32 +0200
At 10:36 Uhr -0700 23.05.2001, Chuck Pisula wrote:
My guess is that it is either a) in the NSTableViews coord system,
or b) the windows coordinate system.
If I had to bet, I'd pick (a).
I hope you are right ;) I'll try it out - but I found another big caveat:
the tooltips are based on static rects. This is in a static
nstableview. But it is already a problem in a static NSOutlineView,
where the user can expand/collapse folders at will. This would cause
many, if not even all cells to change their position.
So whenever data is add/removed from the view, or whenever a folder
is expanded, collapsed, I would have to remove many many tooltip
rects, and re-add them
Not only is this complicated, it requires me to hook in in multple
places just to determine these changes occured; I don't even speak
about the vast overhead.
To me it looks as if Apple really should add some direct support for
this - I think what I want to achieve is not very unusal, is it?
it seems a simple delegate function could be added for this. Something like
- (NSString *)tableView:(NSTableView *)aTableView
toolTipStringForTableColumn:(NSTableColumn *)aTableColumn
row:(int) rowIndex;
and something similiar for outlineview...
Or maybe I once more overlook something obvious, and there is already
a simple way to achieve what I want directly ;)
Max
--
-----------------------------------------------
Max Horn
C++/ObjC/Java Developer
email: <
mailto:email@hidden>
phone: (+49) 6151-494890