• 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
Re: Table View and Tool Tips
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table View and Tool Tips


  • Subject: Re: Table View and Tool Tips
  • From: Ryan Stevens <email@hidden>
  • Date: Fri, 18 Oct 2002 08:40:06 -0700

On Friday, October 18, 2002, at 07:36 AM, Andreas Mayer wrote:

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.


I think it does. I'm getting the -tableView:willDisplayCell:... message when I move the columns.

I still think using a custom cell to handle the tooltips is the way to go. I've done (basically) what you're doing already and what I ended up with was a mess.


If anyone is interrested in my solution, it's available at

<http://www.harmless.de/cocoa.html>
_______________________________________________
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.

  • Follow-Ups:
    • Re: Table View and Tool Tips
      • From: Andreas Mayer <email@hidden>
References: 
 >Re: Table View and Tool Tips (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: app terminate and window closing
  • Next by Date: Re: How to avoid a Windows interface on OS X?
  • Previous by thread: Re: Table View and Tool Tips
  • Next by thread: Re: Table View and Tool Tips
  • Index(es):
    • Date
    • Thread