Binding value for NSTableView, but tooltip gets set as well
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-06-02T09:56:48Z
Indexed on
2010/06/05
11:22 UTC
Read the original article
Hit count: 265
I've set up an NSTableView
in Interface Builder to be populated from an NSArray
. Each value of the array represents one row in the table. The value is bound correctly, but as a side effect, the table cell's tooltip is set to the string representation of the bound object.
In my case, the NSArray
contains NSDictiorany
objects and the tooltip looks like it could be the [... description]
output of that dictionary. Very ugly...
I don't want the tooltip to be set at all. I have other tables that have plain NSString values bound to them and they don't have a tooltip set automatically. Is there some Interface Builder magic going on? I tried to start with a blank project - same problem.
I should add that the table cell is a custom implementation of NSTextFieldCell
that uses an NSButtonCell
instance to draw an image and a label into the table. The values are retrieved from the dictionary bound as value.
Why is the tooltip set when I only bind the "value" attribute?
Thanks in advance!
© Stack Overflow or respective owner