Re: Table View and Tool Tips
Re: Table View and Tool Tips
- Subject: Re: Table View and Tool Tips
- From: Andreas Mayer <email@hidden>
- Date: Fri, 18 Oct 2002 16:36:49 +0200
Hi Ryan,
Am Donnerstag, 17.10.02 um 21:19 Uhr schrieb Ryan Stevens:
What I suggested (as #4) is more like what you describe as #3 -
creating a tooltip rect for each cell. Only, it should be easy to
optimize what I described; if it's live resizing, no need to reset the
tooltips until it's done - if the cell isn't on-screen, don't bother
giving it a tooltip until it is...
thanks for your help! That's essentially what I'm doing now.
But I decided to move the code to a subclass of NSTableView.
It manages a directory of tool tip rects that are added/replaced
whenever a cell is drawn.
On reloadData all tool tip rects are removed.
Since all affected cells are redrawn when a column is resized, it works
fine in that case.
There's still one case where it may fail: I'm not sure if the table
view redraws cells if columns are moved.
If anyone is interrested in my solution, it's available at
<
http://www.harmless.de/cocoa.html>
bye. Andreas.
_______________________________________________
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.