• 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
NSTableview tooltip bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableview tooltip bug?


  • Subject: NSTableview tooltip bug?
  • From: Donald Hall <email@hidden>
  • Date: Tue, 01 May 2012 18:10:02 -0600

I have an NSTableview column where each cell contains a file name. I use tooltips (addToolTipRect and NSToolTipOwner protocol)  to show the complete path to the file when the user hovers the mouse over the cell. This works fine unless the name of the file exceeds the column width - 3 pixels. i.e. if the width of the text for the cell is greater than (column width - 3) I get a strange behaviour: the correct tooltip flashes briefly in the usual place relative to the cell, then the cell itself becomes highlighted with a bright yellow background. If the text width is greater than the cell width the the highlighted rectangle extends over the column boundary, so I guess it is the enclosing rectangle of the cell's text that is highlighted.

I created a category on NSString to define a truncated string method where I remove characters from the middle of the string to fit it into a specified width. My workaround to this problem was to specify the column width - 3 as the width I wanted for the truncated string.

Has anyone else seen this? Is it a known bug?

Thanks, Don

------------
Don Hall
Apps & More Software Design, Inc.
email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableview tooltip bug?
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: No validation with a bound NSTableView and custom NSFormatter
  • Next by Date: Re: No validation with a bound NSTableView and custom NSFormatter
  • Previous by thread: Re: No validation with a bound NSTableView and custom NSFormatter
  • Next by thread: Re: NSTableview tooltip bug?
  • Index(es):
    • Date
    • Thread