• 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 & hiding or updating tooltips
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView & hiding or updating tooltips


  • Subject: NSTableView & hiding or updating tooltips
  • From: Eric Gorr <email@hidden>
  • Date: Mon, 28 Feb 2011 15:11:47 -0500

For my NSTableView, I have defined

- (NSString *)tableView:toolTipForCell:rect:tableColumn:row:mouseLocation:

and this does return the string I want to display and the NSTableView does display that string as a tooltip.

The problem is that while the tooltip is being displayed, I click the mouse in the same table cell and this will cause the method above to return a different string. However, I cannot seem to figure out how to tell the table that it needs to update the tooltip being displayed.

I did try calling -removeAllToolTips, but that did nothing, as expected.

I can get the tooltip to disappear by calling [sender setToolTip:@""]; Although, it does disappear suddenly, rather then a nice, slow fad out.

However, the tooltip does not reappear with the updated text unless I move the mouse and wait....not quite the behavior I want.

Is there anyway to tell the table that it needs to update the tooltip being displayed?

Any other ideas or thoughts on how to handle this better?_______________________________________________

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

  • Prev by Date: Re: WindowID to front
  • Next by Date: Re: How to create a CGColorSpaceRef with DeviceN model?
  • Previous by thread: How to find unencoded characters
  • Next by thread: Canceling all touches
  • Index(es):
    • Date
    • Thread