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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to