NSTableView & hiding or updating tooltips
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